Rename to useCallViewKeyboardShortcuts

This commit is contained in:
David Baker 2023-01-13 11:52:40 +00:00
parent 9ba4ce429f
commit a5977fc992
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ import { usePrefersReducedMotion } from "../usePrefersReducedMotion";
import { ParticipantInfo } from "./useGroupCall"; import { ParticipantInfo } from "./useGroupCall";
import { TileDescriptor } from "../video-grid/TileDescriptor"; import { TileDescriptor } from "../video-grid/TileDescriptor";
import { AudioSink } from "../video-grid/AudioSink"; import { AudioSink } from "../video-grid/AudioSink";
import { useKeyboardShortcuts } from "../useKeyboardShortcuts"; import { useCallViewKeyboardShortcuts } from "../useCallViewKeyboardShortcuts";
const canScreenshare = "getDisplayMedia" in (navigator.mediaDevices ?? {}); const canScreenshare = "getDisplayMedia" in (navigator.mediaDevices ?? {});
// There is currently a bug in Safari our our code with cloning and sending MediaStreams // There is currently a bug in Safari our our code with cloning and sending MediaStreams
@ -144,7 +144,7 @@ export function InCallView({
const { hideScreensharing } = useUrlParams(); const { hideScreensharing } = useUrlParams();
useKeyboardShortcuts( useCallViewKeyboardShortcuts(
!feedbackModalState.isOpen, !feedbackModalState.isOpen,
toggleMicrophoneMuted, toggleMicrophoneMuted,
toggleLocalVideoMuted, toggleLocalVideoMuted,

View file

@ -19,7 +19,7 @@ import { useCallback, useState } from "react";
import { getSetting } from "./settings/useSetting"; import { getSetting } from "./settings/useSetting";
import { useEventTarget } from "./useEvents"; import { useEventTarget } from "./useEvents";
export function useKeyboardShortcuts( export function useCallViewKeyboardShortcuts(
enabled: boolean, enabled: boolean,
toggleMicrophoneMuted: () => void, toggleMicrophoneMuted: () => void,
toggleLocalVideoMuted: () => void, toggleLocalVideoMuted: () => void,