1
0
Fork 0

Check for each key passed to Shortcut.match whether it is contained in the shortcut's keys, instead of comparing the first argument key to the first member key, the second to the second, etc.

This commit is contained in:
TheFGFSEagle 2023-02-19 23:28:03 +01:00 committed by James Turner
parent 372d68a775
commit 921df08a61

View file

@ -208,9 +208,9 @@ FunctionKeys = {
F9: 0xFFC6,
F10: 0xFFC7,
F11: 0xFFC8,
# most keyboards only have F1 - F11, so better not use any of the below FunctionKeys
F12: 0xFFC9,
# most keyboards only have F1 - F12, so better not use any of the below FunctionKeys
F13: 0xFFCA,
F14: 0xFFCB,
F15: 0xFFCC,
@ -369,7 +369,7 @@ var Shortcut = {
return 0;
}
for (var i = 0; i < size(keys); i += 1) {
match &= keys[i] == me.keys[i];
match &= contains(me.keys, keys[i]);
}
return match;
},