Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Oct 28, 2023
1 parent dc9bd86 commit 18d7261
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ui/src/hooks/useCombinedKeyPress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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);
Expand Down

0 comments on commit 18d7261

Please sign in to comment.