Adds keyboard shortcuts for calling
This commit is contained in:
@@ -39,6 +39,10 @@ import { missingCaseError } from '../util/missingCaseError';
|
||||
import * as KeyboardLayout from '../services/keyboardLayout';
|
||||
import { useActivateSpeakerViewOnPresenting } from '../hooks/useActivateSpeakerViewOnPresenting';
|
||||
import { CallingAudioIndicator } from './CallingAudioIndicator';
|
||||
import {
|
||||
useActiveCallShortcuts,
|
||||
useKeyboardShortcuts,
|
||||
} from '../hooks/useKeyboardShortcuts';
|
||||
|
||||
export type PropsType = {
|
||||
activeCall: ActiveCallType;
|
||||
@@ -140,6 +144,9 @@ export const CallScreen: React.FC<PropsType> = ({
|
||||
toggleSpeakerView
|
||||
);
|
||||
|
||||
const activeCallShortcuts = useActiveCallShortcuts(hangUpActiveCall);
|
||||
useKeyboardShortcuts(activeCallShortcuts);
|
||||
|
||||
const toggleAudio = useCallback(() => {
|
||||
setLocalAudio({
|
||||
enabled: !hasLocalAudio,
|
||||
|
Reference in New Issue
Block a user