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

Fix :map/:unmap 1st argument completions. Slight hive api changes.

This commit is contained in:
Kris Maglione
2011-01-21 06:32:35 -05:00
parent d71320aa09
commit 44d3cd03ee
2 changed files with 58 additions and 54 deletions

View File

@@ -878,7 +878,7 @@ var Events = Module("events", {
if (!key)
return null;
if (modes.recording && (!this._input || !mappings.userHive.hasMap(modes.main, this._input.buffer + key)))
if (modes.recording && (!this._input || !mappings.user.hasMap(modes.main, this._input.buffer + key)))
events._macroKeys.push(key);
// feedingKeys needs to be separate from interrupted so
@@ -958,7 +958,7 @@ var Events = Module("events", {
input.preExecute = params.preExecute;
if (params.postExecute)
input.postExecute = params.postExecute;
if (params.onEvent && input.hive === mappings.builtinHive)
if (params.onEvent && input.hive === mappings.builtin)
input.fallthrough = function (event) {
return params.onEvent(event) === false ? Events.KILL : Events.PASS;
};