1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-30 00:23:35 +02: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; this._input.motionCount = null;
if (!isEscape(key)) { if (!isEscape(key)) {
stop = false;
if (mode.main === modes.TEXT_EDIT) { if (mode.main === modes.TEXT_EDIT) {
dactyl.beep(); dactyl.beep();
stop = true; stop = true;
} }
if (mode.main === modes.COMMAND_LINE) if (mode.main === modes.COMMAND_LINE)
if (!(modes.extended & modes.INPUT_MULTILINE)) if (!(mode.extended & modes.INPUT_MULTILINE))
dactyl.trapErrors(commandline.onEvent, commandline, event); dactyl.trapErrors(commandline.onEvent, commandline, event);
// allow key to be passed to the host app if we can't handle it
} }
} }