diff --git a/frontend/src/functions/useKeypressHook.tsx b/frontend/src/functions/useKeypressHook.tsx index 55287795..9037e8b7 100644 --- a/frontend/src/functions/useKeypressHook.tsx +++ b/frontend/src/functions/useKeypressHook.tsx @@ -6,7 +6,13 @@ export function useKeyPress(targetKey: string) { useEffect(() => { const handleKeyDown = (event: KeyboardEvent) => { - if (event.key === targetKey) { + if ( + event.key === targetKey && + !event.ctrlKey && + !event.metaKey && + !event.altKey && + !event.altKey + ) { setIsKeyPressed(true); } };