1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-22 13:24:11 +01:00

Only bitch about unknown keys in TEXT EDIT mode.

This commit is contained in:
Kris Maglione
2010-12-03 23:50:47 -05:00
parent a5834b9b18
commit 1ead903ab7

View File

@@ -969,15 +969,15 @@ const Events = Module("events", {
this._input.motionCount = null;
if (!isEscape(key)) {
stop = false;
if (mode.main === modes.TEXT_EDIT) {
dactyl.beep();
stop = true;
}
if (mode.main === modes.COMMAND_LINE)
if (!(modes.extended & modes.INPUT_MULTILINE))
if (!(mode.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
}
}