1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 14:25:45 +01:00

Don't push pass through mode multiple times. Closes issue #641.

This commit is contained in:
Kris Maglione
2011-08-19 15:20:15 -04:00
parent 05eac8c5c3
commit 4579a1fd16
4 changed files with 21 additions and 8 deletions

View File

@@ -1586,7 +1586,10 @@ var Events = Module("events", {
mappings.add([modes.MAIN],
["<C-z>", "<pass-all-keys>"], "Temporarily ignore all " + config.appName + " key bindings",
function () { modes.push(modes.PASS_THROUGH); });
function () {
if (modes.main != modes.PASS_THROUGH)
modes.push(modes.PASS_THROUGH);
});
mappings.add([modes.MAIN, modes.PASS_THROUGH, modes.QUOTE],
["<C-v>", "<pass-next-key>"], "Pass through next key",