1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 04:35:51 +01:00

Get rid of horrible coalesced event handlers in commandline.js.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-24 12:50:08 -05:00
parent 56777f59c3
commit 9786171520
10 changed files with 181 additions and 206 deletions

View File

@@ -24,9 +24,9 @@ var ProcessorStack = Class("ProcessorStack", {
input.preExecute = params.preExecute;
if (params.postExecute)
input.postExecute = params.postExecute;
if (params.onEvent && input.hive === mappings.builtin)
if (params.onKeyPress && input.hive === mappings.builtin)
input.fallthrough = function (event) {
return params.onEvent(event) === false ? Events.KILL : Events.PASS;
return params.onKeyPress(event) === false ? Events.KILL : Events.PASS;
};
}
},