1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 13:05:47 +01:00

Fix key chains in the MOW.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-26 16:56:00 -05:00
parent a796d8b871
commit c7a1303197

View File

@@ -138,7 +138,7 @@ var ProcessorStack = Class("ProcessorStack", {
if (result === Events.KILL) if (result === Events.KILL)
this.actions = []; this.actions = [];
else if (!this.actions.length) else if (!this.actions.length && !processors.length)
for (let input in values(this.processors)) for (let input in values(this.processors))
if (input.fallthrough) { if (input.fallthrough) {
if (result === Events.KILL) if (result === Events.KILL)
@@ -1331,11 +1331,11 @@ var Events = Module("events", {
}; };
}, },
mappings: function () { mappings: function () {
mappings.add(modes.all, mappings.add(modes.MAIN,
["<C-z>", "<pass-all-keys>"], "Temporarily ignore all " + config.appName + " key bindings", ["<C-z>", "<pass-all-keys>"], "Temporarily ignore all " + config.appName + " key bindings",
function () { modes.push(modes.PASS_THROUGH); }); function () { modes.push(modes.PASS_THROUGH); });
mappings.add(modes.all, mappings.add(modes.MAIN,
["<C-v>", "<pass-next-key>"], "Pass through next key", ["<C-v>", "<pass-next-key>"], "Pass through next key",
function () { function () {
if (modes.main == modes.QUOTE) if (modes.main == modes.QUOTE)
@@ -1343,12 +1343,12 @@ var Events = Module("events", {
modes.push(modes.QUOTE); modes.push(modes.QUOTE);
}); });
mappings.add(modes.all, mappings.add(modes.BASE,
["<Nop>"], "Do nothing", ["<Nop>"], "Do nothing",
function () {}); function () {});
// macros // macros
mappings.add([modes.NORMAL, modes.TEXT_AREA, modes.PLAYER].filter(util.identity), mappings.add([modes.COMMAND],
["q", "<record-macro>"], "Record a key sequence into a macro", ["q", "<record-macro>"], "Record a key sequence into a macro",
function ({ arg }) { function ({ arg }) {
events._macroKeys.pop(); events._macroKeys.pop();
@@ -1356,7 +1356,7 @@ var Events = Module("events", {
}, },
{ get arg() !modes.recording }); { get arg() !modes.recording });
mappings.add([modes.NORMAL, modes.TEXT_AREA, modes.PLAYER].filter(util.identity), mappings.add([modes.COMMAND],
["@", "<play-macro>"], "Play a macro", ["@", "<play-macro>"], "Play a macro",
function ({ arg, count }) { function ({ arg, count }) {
count = Math.max(count, 1); count = Math.max(count, 1);