1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 05:38:01 +01:00

Fix things like ":map :", ":map +", but not things like ":map <Plus>". Ideas?

This commit is contained in:
Kris Maglione
2009-05-22 22:18:10 -04:00
parent 36f6ff463f
commit 955ee4185b

View File

@@ -84,7 +84,7 @@ Map.prototype = {
* @param {string} name The name to query. * @param {string} name The name to query.
* @returns {boolean} * @returns {boolean}
*/ */
hasName: function (name) this.names.indexOf(name) >= 0, hasName: function (name) this.names.indexOf(name) >= 0 || this.names.indexOf(name.replace(/<S-(.)>/g, "$1")) >= 0,
/** /**
* Execute the action for this mapping. * Execute the action for this mapping.