1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 17:15:47 +01:00

Fix 'passkeys' on Minefield.

This commit is contained in:
Kris Maglione
2011-04-07 13:29:54 -04:00
parent ef4070b384
commit 909d89c5a6
3 changed files with 10 additions and 3 deletions

View File

@@ -1665,7 +1665,7 @@ var Events = Module("events", {
filter.keys = events.fromString(vals[0]).map(events.closure.toString);
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();
return values;

View File

@@ -266,7 +266,10 @@ var Tabs = Module("tabs", {
let tabs = this.visibleTabs;
let position = this.index(null, true);
if (spec == null || spec === "")
if (spec == null)
return -1;
if (spec === "")
return position;
if (typeof spec === "number")