1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:57:59 +01:00

Get rid of spurious <Esc> mappings.

This commit is contained in:
Kris Maglione
2011-01-20 01:07:29 -05:00
parent c5221fc24d
commit e9c55b1c27
2 changed files with 7 additions and 17 deletions

View File

@@ -494,17 +494,17 @@ var Modes = Module("modes", {
mappings.add([modes.BASE],
["<Esc>", "<C-[>"],
"Return to NORMAL mode",
function () { modes.reset() });
function () { modes.reset(); });
mappings.add([modes.INPUT, modes.COMMAND, modes.PASS_THROUGH, modes.QUOTE],
["<Esc>", "<C-[>"],
"Return to the previous mode",
function () { modes.reset() });
function () { modes.pop(); });
mappings.add([modes.MENU],
["<Esc>", "<C-[>"],
"Close the current popup",
function () events.PASS);
function () Events.PASS);
},
prefs: function () {
prefs.watch("accessibility.browsewithcaret", modes.closure.onCaretChange);