now checks for matches against multiple key combos
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user