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

Fix missing bracing in last commit.

This commit is contained in:
Kris Maglione
2011-01-18 02:28:34 -05:00
parent 328c78b842
commit 53248645c2

View File

@@ -960,23 +960,25 @@ var Events = Module("events", {
if (overrideMode)
processors = [Events.KeyProcessor(overrideMode, mode.extended)];
else for (let m in keyModes.iterValues())
if (m)
processors.push(Events.KeyProcessor(m, mode.extended));
else {
for (let m in keyModes.iterValues())
if (m)
processors.push(Events.KeyProcessor(m, mode.extended));
let input = processors[processors.length - 1];
if (mode.params.preExecute)
input.preExecute = mode.params.preExecute;
if (mode.params.postExecute)
input.postExecute = mode.params.postExecute;
if (mode.params.onEvent)
input.fallthrough = function (event) {
// Bloody hell.
if (events.toString(event) === "<C-h>")
event.dactylString = "<BS>";
let input = processors[processors.length - 1];
if (mode.params.preExecute)
input.preExecute = mode.params.preExecute;
if (mode.params.postExecute)
input.postExecute = mode.params.postExecute;
if (mode.params.onEvent)
input.fallthrough = function (event) {
// Bloody hell.
if (events.toString(event) === "<C-h>")
event.dactylString = "<BS>";
return mode.params.onEvent(event) === false;
};
return mode.params.onEvent(event) === false;
};
}
}
const KILL = true, PASS = false, WAIT = null;