Browse Source

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

pull/7869/head
David Luzar 2 years ago committed by GitHub
parent
commit
c6a045d092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      excalidraw-app/useHandleAppTheme.ts

2
excalidraw-app/useHandleAppTheme.ts

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

Loading…
Cancel
Save