now checks for matches against multiple key combos
This commit is contained in:
parent
2673c7c645
commit
d43f2eca7c
@ -1819,7 +1819,9 @@ function getSettings(callback) {
|
||||
exports.getSettings = getSettings;
|
||||
|
||||
function isHotkeyPressed(hotkeyID) {
|
||||
return setArrayMatch(KEYS_DOWN, HOTKEY_CODES[hotkeyID]);
|
||||
return HOTKEY_CODES[hotkeyID].some((combo) => {
|
||||
return setArrayMatch(KEYS_DOWN, combo);
|
||||
})
|
||||
}
|
||||
exports.isHotkeyPressed = isHotkeyPressed;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user