1
0
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:
Kris Maglione
2011-03-01 18:38:12 -05:00
parent f34e2a96f1
commit 7f447b911c
3 changed files with 9 additions and 16 deletions

View File

@@ -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) {