mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 05:52:27 +01:00
Allow escaping out of Ignore mode.
This commit is contained in:
@@ -119,7 +119,11 @@ var Modes = Module("modes", {
|
||||
onKeyPress: function (events) { if (modes.main == modes.QUOTE) modes.pop(); }
|
||||
});
|
||||
this.addMode("IGNORE", { hidden: true }, {
|
||||
onKeyPress: function (events) false,
|
||||
onKeyPress: function (events) {
|
||||
if (events.isCancelKey(DOM.Event.stringify(event)))
|
||||
return true;
|
||||
return false;
|
||||
},
|
||||
bases: [],
|
||||
passthrough: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user