From c6a045d092a0d5354d9714a1b01442ae62b40352 Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:55:33 +0200 Subject: [PATCH] fix: theme toggle shortcut `event.code` (#7868) --- excalidraw-app/useHandleAppTheme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/excalidraw-app/useHandleAppTheme.ts b/excalidraw-app/useHandleAppTheme.ts index d8df99b1b..a0628c2b7 100644 --- a/excalidraw-app/useHandleAppTheme.ts +++ b/excalidraw-app/useHandleAppTheme.ts @@ -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();