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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user