mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-09 06:55:46 +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(); }
|
onKeyPress: function (events) { if (modes.main == modes.QUOTE) modes.pop(); }
|
||||||
});
|
});
|
||||||
this.addMode("IGNORE", { hidden: true }, {
|
this.addMode("IGNORE", { hidden: true }, {
|
||||||
onKeyPress: function (events) false,
|
onKeyPress: function (events) {
|
||||||
|
if (events.isCancelKey(DOM.Event.stringify(event)))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
},
|
||||||
bases: [],
|
bases: [],
|
||||||
passthrough: true
|
passthrough: true
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user