1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 13:32:27 +01:00

Fix handling of "any" key modifier in events.hasNativeKey.

This commit is contained in:
Doug Kearns
2015-07-06 23:29:11 +10:00
parent f4790729da
commit 58faec7655

View File

@@ -490,7 +490,7 @@ var Events = Module("events", {
case "accel": keys[accel] = true; break;
default: keys[modifier + "Key"] = true; break;
case "any":
if (!iter.some(keys, ([k, v]) => v && needed[k]))
if (!iter(keys).some(([k, v]) => v && needed[k]))
continue outer;
for (let [k, v] of iter(keys)) {
if (v)