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