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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user