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

Merge default.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-23 22:23:33 -05:00

View File

@@ -50,6 +50,8 @@ var Map = Class("Map", {
get toStringParams() [this.modes.map(function (m) m.name), this.names.map(String.quote)],
/** @property {number} A unique ID for this mapping. */
id: null,
/** @property {number[]} All of the modes for which this mapping applies. */
modes: null,
/** @property {string[]} All of this mapping's names (key sequences). */
@@ -300,7 +302,7 @@ var Mappings = Module("mappings", {
iterate: function (mode) {
let seen = {};
for (let hive in this.hives.iterValues())
for (let map in hive.getStack(mode).iterValues())
for (let map in array(hive.getStack(mode)).iterValues())
if (!set.add(seen, map.name))
yield map;
},