1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 00:28:00 +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.
* @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.