From c7a1303197b0534ab7342eb3202d9094e82b689a Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 26 Jan 2011 16:56:00 -0500 Subject: [PATCH] Fix key chains in the MOW. --HG-- branch : key-processing --- common/content/events.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 130b9aa1..735ab99d 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -138,7 +138,7 @@ var ProcessorStack = Class("ProcessorStack", { if (result === Events.KILL) this.actions = []; - else if (!this.actions.length) + else if (!this.actions.length && !processors.length) for (let input in values(this.processors)) if (input.fallthrough) { if (result === Events.KILL) @@ -1331,11 +1331,11 @@ var Events = Module("events", { }; }, mappings: function () { - mappings.add(modes.all, + mappings.add(modes.MAIN, ["", ""], "Temporarily ignore all " + config.appName + " key bindings", function () { modes.push(modes.PASS_THROUGH); }); - mappings.add(modes.all, + mappings.add(modes.MAIN, ["", ""], "Pass through next key", function () { if (modes.main == modes.QUOTE) @@ -1343,12 +1343,12 @@ var Events = Module("events", { modes.push(modes.QUOTE); }); - mappings.add(modes.all, + mappings.add(modes.BASE, [""], "Do nothing", function () {}); // macros - mappings.add([modes.NORMAL, modes.TEXT_AREA, modes.PLAYER].filter(util.identity), + mappings.add([modes.COMMAND], ["q", ""], "Record a key sequence into a macro", function ({ arg }) { events._macroKeys.pop(); @@ -1356,7 +1356,7 @@ var Events = Module("events", { }, { get arg() !modes.recording }); - mappings.add([modes.NORMAL, modes.TEXT_AREA, modes.PLAYER].filter(util.identity), + mappings.add([modes.COMMAND], ["@", ""], "Play a macro", function ({ arg, count }) { count = Math.max(count, 1);