fix: theme toggle shortcut event.code (#7868)

This commit is contained in:
David Luzar 2024-04-08 16:55:33 +02:00 committed by GitHub
parent cd50aa719f
commit c6a045d092
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ export const useHandleAppTheme = () => {
!event[KEYS.CTRL_OR_CMD] && !event[KEYS.CTRL_OR_CMD] &&
event.altKey && event.altKey &&
event.shiftKey && event.shiftKey &&
event.code === KEYS.D event.code === CODES.D
) { ) {
event.preventDefault(); event.preventDefault();
event.stopImmediatePropagation(); event.stopImmediatePropagation();