From 18d7261882217e4f22bd58493e59658f662ea20a Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Sat, 28 Oct 2023 17:14:15 +1100 Subject: [PATCH] fix --- ui/src/hooks/useCombinedKeyPress.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/src/hooks/useCombinedKeyPress.ts b/ui/src/hooks/useCombinedKeyPress.ts index 7425172a..ec24a802 100644 --- a/ui/src/hooks/useCombinedKeyPress.ts +++ b/ui/src/hooks/useCombinedKeyPress.ts @@ -18,7 +18,6 @@ function useCombinedKeyPress( const handleKeyDown = useCallback( (event: KeyboardEvent) => { - event.preventDefault(); const key = event.key.toLowerCase(); if (!pressedKeys.includes(key)) { setPressedKeys((prev) => [...prev, key]); @@ -29,7 +28,6 @@ function useCombinedKeyPress( const handleKeyUp = useCallback( (event: KeyboardEvent) => { - event.preventDefault(); const key = event.key.toLowerCase(); if (pressedKeys.includes(key)) { const filteredKeys = pressedKeys.filter((key) => key !== key);