1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 06:12:26 +01:00

Only bitch about unknown keys in TEXT EDIT mode.

This commit is contained in:
Kris Maglione
2010-12-03 23:48:11 -05:00
parent cb2038b749
commit a5834b9b18

View File

@@ -969,17 +969,15 @@ const Events = Module("events", {
this._input.motionCount = null;
if (!isEscape(key)) {
// allow key to be passed to the host app if we can't handle it
stop = (mode.main === modes.TEXT_EDIT);
if (mode.main === modes.COMMAND_LINE) {
if (!(modes.extended & modes.INPUT_MULTILINE))
dactyl.trapErrors(function () {
commandline.onEvent(event); // reroute event in command line mode
});
}
else if (!mode.mainMode.input)
if (mode.main === modes.TEXT_EDIT) {
dactyl.beep();
stop = true;
}
if (mode.main === modes.COMMAND_LINE)
if (!(modes.extended & modes.INPUT_MULTILINE))
dactyl.trapErrors(commandline.onEvent, commandline, event);
// allow key to be passed to the host app if we can't handle it
}
}