1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 04:14:11 +01:00

clean up HACKING file a little, and rename canonKeys method

This commit is contained in:
Martin Stubenschrott
2009-06-01 13:56:14 +02:00
parent 7e9fcf8d05
commit 3e984c776d
3 changed files with 10 additions and 77 deletions

View File

@@ -863,7 +863,7 @@ function Events() //{{{
yield match[0];
},
canonKeys: function (keys)
canonicalKeys: function (keys)
{
var res = util.map(events.splitKeys(keys), function (key) {
let keyCode = 0;

View File

@@ -56,7 +56,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(events.canonKeys);
this.names = keys.map(events.canonicalKeys);
/** @property {function (number)} The function called to execute this mapping. */
this.action = action;