diff --git a/src/useCallViewKeyboardShortcuts.ts b/src/useCallViewKeyboardShortcuts.ts index ccad6a8e..8a247d0b 100644 --- a/src/useCallViewKeyboardShortcuts.ts +++ b/src/useCallViewKeyboardShortcuts.ts @@ -43,13 +43,14 @@ export function useCallViewKeyboardShortcuts( toggleMicrophoneMuted(); } else if (event.key == "v") { toggleLocalVideoMuted(); - } else if (event.key === " ") { + } else if (event.key === " " && !spacebarHeld) { setSpacebarHeld(true); setMicrophoneMuted(false); } }, [ enabled, + spacebarHeld, toggleLocalVideoMuted, toggleMicrophoneMuted, setMicrophoneMuted,