mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 01:25:46 +01:00
Get rid of absurd config.ignoreKeys. Closes issue #406.
This commit is contained in:
@@ -1232,12 +1232,10 @@ var Events = Module("events", {
|
||||
if (ignore)
|
||||
return null;
|
||||
|
||||
// FIXME: Why is this hard coded? --Kris
|
||||
if (key == "<C-c>")
|
||||
util.interrupted = true;
|
||||
|
||||
if (config.ignoreKeys[key] & mode.main)
|
||||
return null;
|
||||
|
||||
this.processor = ProcessorStack(mode, mappings.hives.array, event.noremap);
|
||||
this.processor.keyEvents = this.keyEvents;
|
||||
}
|
||||
|
||||
@@ -324,12 +324,6 @@ var ConfigBase = Class("ConfigBase", {
|
||||
*/
|
||||
host: null,
|
||||
|
||||
/**
|
||||
* @property {Object} A map between key names for key events which should be ignored,
|
||||
* and a mask of the modes in which they should be ignored.
|
||||
*/
|
||||
ignoreKeys: {}, // NOTE: be aware you can't put useful values in here, as "modes.NORMAL" etc. are not defined at this time
|
||||
|
||||
/**
|
||||
* @property {[[]]} An array of application specific mode specifications.
|
||||
* The values of each mode are passed to modes.addMode during
|
||||
|
||||
Reference in New Issue
Block a user