now checks for matches against multiple key combos

This commit is contained in:
ortiza5 2021-03-14 19:19:02 -06:00
parent 2673c7c645
commit d43f2eca7c

View File

@ -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;