mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-17 15:23:31 +01:00
Fix missing bracing in last commit.
This commit is contained in:
@@ -960,23 +960,25 @@ var Events = Module("events", {
|
|||||||
|
|
||||||
if (overrideMode)
|
if (overrideMode)
|
||||||
processors = [Events.KeyProcessor(overrideMode, mode.extended)];
|
processors = [Events.KeyProcessor(overrideMode, mode.extended)];
|
||||||
else for (let m in keyModes.iterValues())
|
else {
|
||||||
if (m)
|
for (let m in keyModes.iterValues())
|
||||||
processors.push(Events.KeyProcessor(m, mode.extended));
|
if (m)
|
||||||
|
processors.push(Events.KeyProcessor(m, mode.extended));
|
||||||
|
|
||||||
let input = processors[processors.length - 1];
|
let input = processors[processors.length - 1];
|
||||||
if (mode.params.preExecute)
|
if (mode.params.preExecute)
|
||||||
input.preExecute = mode.params.preExecute;
|
input.preExecute = mode.params.preExecute;
|
||||||
if (mode.params.postExecute)
|
if (mode.params.postExecute)
|
||||||
input.postExecute = mode.params.postExecute;
|
input.postExecute = mode.params.postExecute;
|
||||||
if (mode.params.onEvent)
|
if (mode.params.onEvent)
|
||||||
input.fallthrough = function (event) {
|
input.fallthrough = function (event) {
|
||||||
// Bloody hell.
|
// Bloody hell.
|
||||||
if (events.toString(event) === "<C-h>")
|
if (events.toString(event) === "<C-h>")
|
||||||
event.dactylString = "<BS>";
|
event.dactylString = "<BS>";
|
||||||
|
|
||||||
return mode.params.onEvent(event) === false;
|
return mode.params.onEvent(event) === false;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const KILL = true, PASS = false, WAIT = null;
|
const KILL = true, PASS = false, WAIT = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user