mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-24 01:40:41 +02:00
fix: theme toggle shortcut event.code
(#7868)
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user