diff --git a/src/useCallViewKeyboardShortcuts.ts b/src/useCallViewKeyboardShortcuts.ts index 11ea8f0..b0ce527 100644 --- a/src/useCallViewKeyboardShortcuts.ts +++ b/src/useCallViewKeyboardShortcuts.ts @@ -88,7 +88,7 @@ export function useCallViewKeyboardShortcuts( window, "blur", useCallback(() => { - if (spacebarHeld) { + if (spacebarHeld.current) { spacebarHeld.current = false; setMicrophoneMuted(true); }