mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-16 00:13:32 +01:00
Fix 'passkeys' on Minefield.
This commit is contained in:
@@ -1665,7 +1665,7 @@ var Events = Module("events", {
|
|||||||
filter.keys = events.fromString(vals[0]).map(events.closure.toString);
|
filter.keys = events.fromString(vals[0]).map(events.closure.toString);
|
||||||
|
|
||||||
filter.commandKeys = vals.slice(1).map(events.closure.canonicalKeys);
|
filter.commandKeys = vals.slice(1).map(events.closure.canonicalKeys);
|
||||||
filter.inputKeys = filter.commandKeys.filter(/^<[ACM]-/);
|
filter.inputKeys = filter.commandKeys.filter(bind("test", /^<[ACM]-/));
|
||||||
});
|
});
|
||||||
this.flush();
|
this.flush();
|
||||||
return values;
|
return values;
|
||||||
|
|||||||
@@ -266,7 +266,10 @@ var Tabs = Module("tabs", {
|
|||||||
let tabs = this.visibleTabs;
|
let tabs = this.visibleTabs;
|
||||||
let position = this.index(null, true);
|
let position = this.index(null, true);
|
||||||
|
|
||||||
if (spec == null || spec === "")
|
if (spec == null)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
if (spec === "")
|
||||||
return position;
|
return position;
|
||||||
|
|
||||||
if (typeof spec === "number")
|
if (typeof spec === "number")
|
||||||
|
|||||||
@@ -473,9 +473,13 @@ function curry(fn, length, self, acc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (curry.bind)
|
if (curry.bind)
|
||||||
var bind = function bind(func) func.bind.apply(func, Array.slice(arguments, bind.length));
|
var bind = function bind(meth, self) let (func = callable(meth) ? meth : self[meth])
|
||||||
|
func.bind.apply(func, Array.slice(arguments, 1));
|
||||||
else
|
else
|
||||||
var bind = function bind(func, self) {
|
var bind = function bind(func, self) {
|
||||||
|
if (!callable(func))
|
||||||
|
func = self[func];
|
||||||
|
|
||||||
let args = Array.slice(arguments, bind.length);
|
let args = Array.slice(arguments, bind.length);
|
||||||
return function bound() func.apply(self, args.concat(Array.slice(arguments)));
|
return function bound() func.apply(self, args.concat(Array.slice(arguments)));
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user