diff --git a/src/useKeyboardShortcuts.ts b/src/useKeyboardShortcuts.ts index b9d69ec8..6356b525 100644 --- a/src/useKeyboardShortcuts.ts +++ b/src/useKeyboardShortcuts.ts @@ -43,13 +43,14 @@ export function useKeyboardShortcuts( 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,