mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-01 20:02:27 +01:00
Fix missing base mode in keydown/keyup blocking. Closes issue #615.
--HG-- extra : rebase_source : d76a48e12e8a6f68a4adcb633008af786a4d826d
This commit is contained in:
@@ -328,7 +328,7 @@ var Modes = Module("modes", {
|
||||
return;
|
||||
|
||||
let msg = null;
|
||||
if (options.get("showmode").getKey([this.main].concat(this.main.allBases), false))
|
||||
if (options.get("showmode").getKey(this.main.allBases, false))
|
||||
msg = this._getModeMessage();
|
||||
|
||||
if (msg || loaded.commandline)
|
||||
@@ -504,10 +504,10 @@ var Modes = Module("modes", {
|
||||
displayName: Class.memoize(function () this.name.split("_").map(util.capitalize).join(" ")),
|
||||
|
||||
isinstance: function isinstance(obj)
|
||||
this === obj || this.allBases.indexOf(obj) >= 0 || callable(obj) && this instanceof obj,
|
||||
this.allBases.indexOf(obj) >= 0 || callable(obj) && this instanceof obj,
|
||||
|
||||
allBases: Class.memoize(function () {
|
||||
let seen = {}, res = [], queue = this.bases.slice();
|
||||
let seen = {}, res = [], queue = [this].concat(this.bases);
|
||||
for (let mode in array.iterValues(queue))
|
||||
if (!Set.add(seen, mode)) {
|
||||
res.push(mode);
|
||||
|
||||
Reference in New Issue
Block a user