diff --git a/src/useCallViewKeyboardShortcuts.ts b/src/useCallViewKeyboardShortcuts.ts index 5f9c457..e25cb04 100644 --- a/src/useCallViewKeyboardShortcuts.ts +++ b/src/useCallViewKeyboardShortcuts.ts @@ -62,7 +62,12 @@ export function useCallViewKeyboardShortcuts( setMicrophoneMuted(false); } }, - [toggleLocalVideoMuted, toggleMicrophoneMuted, setMicrophoneMuted] + [ + focusElement, + toggleLocalVideoMuted, + toggleMicrophoneMuted, + setMicrophoneMuted, + ] ) ); @@ -82,7 +87,7 @@ export function useCallViewKeyboardShortcuts( setMicrophoneMuted(true); } }, - [setMicrophoneMuted] + [focusElement, setMicrophoneMuted] ) );