1
0
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:
Kris Maglione
2013-04-21 19:45:14 -07:00
parent cd8bb6915a
commit 9975272c56

View File

@@ -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
});