1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 12:12:28 +01:00

Fix closing menus on <Esc> broken in revision bf712a2498ed.

This commit is contained in:
Kris Maglione
2011-02-19 07:52:01 -05:00
parent 2cef435dbc
commit 5a519b2f9c
2 changed files with 7 additions and 4 deletions

View File

@@ -844,19 +844,19 @@ var Editor = Module("editor", {
[[modes.AUTOCOMPLETE]].concat(Array.slice(arguments)))
bind(["<Esc>"], "Return to INSERT mode",
function () Events.PASS);
function () Events.PASS_THROUGH);
bind(["<C-[>"], "Return to INSERT mode",
function () { events.feedkeys("<Esc>", { skipmap: true }); });
bind(["<Up>"], "Select the previous autocomplete result",
function () Events.PASS);
function () Events.PASS_THROUGH);
bind(["<C-p>"], "Select the previous autocomplete result",
function () { events.feedkeys("<Up>", { skipmap: true }); });
bind(["<Down>"], "Select the next autocomplete result",
function () Events.PASS);
function () Events.PASS_THROUGH);
bind(["<C-n>"], "Select the next autocomplete result",
function () { events.feedkeys("<Down>", { skipmap: true }); });