mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 07:35:47 +01:00
Only bitch about unknown keys in TEXT EDIT mode.
This commit is contained in:
@@ -969,17 +969,15 @@ const Events = Module("events", {
|
|||||||
this._input.motionCount = null;
|
this._input.motionCount = null;
|
||||||
|
|
||||||
if (!isEscape(key)) {
|
if (!isEscape(key)) {
|
||||||
// allow key to be passed to the host app if we can't handle it
|
if (mode.main === modes.TEXT_EDIT) {
|
||||||
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)
|
|
||||||
dactyl.beep();
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user