mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-22 22:53:32 +01:00
Get rid of absurd config.ignoreKeys. Closes issue #406.
This commit is contained in:
@@ -341,14 +341,15 @@ var Config = Module("config", ConfigBase, {
|
||||
.getAttribute("sidebarcommand");
|
||||
}, false);
|
||||
},
|
||||
mappings: function initMappings(dactyl, modules, window) {
|
||||
const { Events, mappings, modes } = modules;
|
||||
mappings.add([modes.NORMAL],
|
||||
["<Return>", "<Space>", "<Up>", "<Down>"],
|
||||
"Handled by " + config.host,
|
||||
function () Events.PASS_THROUGH);
|
||||
},
|
||||
modes: function (dactyl, modules, window) {
|
||||
const { config, modes } = modules;
|
||||
config.ignoreKeys = {
|
||||
"<Return>": modes.NORMAL,
|
||||
"<Space>": modes.NORMAL,
|
||||
"<Up>": modes.NORMAL,
|
||||
"<Down>": modes.NORMAL
|
||||
};
|
||||
const { modes } = modules;
|
||||
config.modes.forEach(function (mode) { modes.addMode.apply(this, mode); });
|
||||
},
|
||||
options: function (dactyl, modules, window) {
|
||||
|
||||
Reference in New Issue
Block a user