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:
@@ -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;
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user