1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 20:24:12 +01:00

Fix some key handling bugs. Closes issue #210.

This commit is contained in:
Kris Maglione
2010-12-25 13:37:26 -05:00
parent 273796d321
commit 7e712dae0f
2 changed files with 4 additions and 6 deletions

View File

@@ -1011,11 +1011,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))
@@ -1025,10 +1025,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