Fixed missing separator for keycodes comparison

This commit is contained in:
Shardul Kurdukar
2023-10-10 21:11:30 +05:30
committed by GitHub
parent 6e251556c6
commit c5e013fd0d
+1 -1
View File
@@ -198,7 +198,7 @@ export const commandCenterKeyDownHandler = derived(
const commandKeyCodes = keys?.map((key) => key.toUpperCase().charCodeAt(0));
const allKeysPressed = commandKeyCodes
? recentKeyCodes.join('').includes(commandKeyCodes.join(''))
? recentKeyCodes.join(',').includes(commandKeyCodes.join(','))
: false;
if (allKeysPressed && isMetaPressed && isShiftPressed && isAltPressed) {