mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:48:00 +01:00
Merge default.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -1026,11 +1026,11 @@ const Events = Module("events", {
|
||||
}
|
||||
|
||||
let res = this.onKeyPress(event);
|
||||
if (res === true)
|
||||
if (res === true || res == null)
|
||||
kill(event);
|
||||
else if (isArray(res)) {
|
||||
if (this.fallthrough) {
|
||||
if (this.fallthrough(res[0]) === true)
|
||||
if (dactyl.trapErrors(this.fallthrough, this, res[0]) === true)
|
||||
kill(res[0]);
|
||||
}
|
||||
else if (Events.isEscape(event))
|
||||
@@ -1040,10 +1040,6 @@ const Events = Module("events", {
|
||||
dactyl.beep();
|
||||
kill(event);
|
||||
}
|
||||
|
||||
if (this.main == modes.COMMAND_LINE)
|
||||
if (!(this.extended & modes.INPUT_MULTILINE))
|
||||
dactyl.trapErrors(commandline.onEvent, commandline, event);
|
||||
}
|
||||
|
||||
// Reprocess unconsumed events
|
||||
|
||||
Reference in New Issue
Block a user