1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 21:12:27 +01:00

More reliable Menu mode handling. Closes issue #335.

This commit is contained in:
Kris Maglione
2011-09-10 14:05:21 -04:00
parent 4d9a4b02a8
commit 525a575a72
3 changed files with 42 additions and 12 deletions

View File

@@ -608,7 +608,11 @@ var Modes = Module("modes", {
mappings.add([modes.MENU], ["<Esc>"],
"Close the current popup",
function () { return Events.PASS_THROUGH; });
function () {
if (modes.popup.active.length)
return Events.PASS_THROUGH;
modes.pop();
});
mappings.add([modes.MENU], ["<C-[>"],
"Close the current popup",