Rename to useCallViewKeyboardShortcuts
This commit is contained in:
		
					parent
					
						
							
								9ba4ce429f
							
						
					
				
			
			
				commit
				
					
						a5977fc992
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -63,7 +63,7 @@ import { usePrefersReducedMotion } from "../usePrefersReducedMotion"; | |||
| import { ParticipantInfo } from "./useGroupCall"; | ||||
| import { TileDescriptor } from "../video-grid/TileDescriptor"; | ||||
| import { AudioSink } from "../video-grid/AudioSink"; | ||||
| import { useKeyboardShortcuts } from "../useKeyboardShortcuts"; | ||||
| import { useCallViewKeyboardShortcuts } from "../useCallViewKeyboardShortcuts"; | ||||
| 
 | ||||
| const canScreenshare = "getDisplayMedia" in (navigator.mediaDevices ?? {}); | ||||
| // 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(); | ||||
| 
 | ||||
|   useKeyboardShortcuts( | ||||
|   useCallViewKeyboardShortcuts( | ||||
|     !feedbackModalState.isOpen, | ||||
|     toggleMicrophoneMuted, | ||||
|     toggleLocalVideoMuted, | ||||
|  |  | |||
|  | @ -19,7 +19,7 @@ import { useCallback, useState } from "react"; | |||
| import { getSetting } from "./settings/useSetting"; | ||||
| import { useEventTarget } from "./useEvents"; | ||||
| 
 | ||||
| export function useKeyboardShortcuts( | ||||
| export function useCallViewKeyboardShortcuts( | ||||
|   enabled: boolean, | ||||
|   toggleMicrophoneMuted: () => void, | ||||
|   toggleLocalVideoMuted: () => void, | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue