1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 15:05:47 +01:00

Store canonical names for all bound keys.

This commit is contained in:
Kris Maglione
2009-05-22 22:12:11 -04:00
parent fa16e09a9a
commit 36f6ff463f
4 changed files with 126 additions and 126 deletions

View File

@@ -58,7 +58,7 @@ function Map(modes, keys, description, action, extraInfo) //{{{
/** @property {number[]} All of the modes for which this mapping applies. */
this.modes = modes;
/** @property {string[]} All of this mapping's names (key sequences). */
this.names = keys.map(function (cmd) cmd.replace(/[casm]-/g, String.toUpperCase)); // only store keysyms with uppercase modifier strings
this.names = keys.map(events.canonKeys);
/** @property {function (number)} The function called to execute this mapping. */
this.action = action;