Introduce ability to play mp4 files as they download

This commit is contained in:
Scott Nonnenberg 2025-01-14 15:22:40 +10:00 committed by GitHub
parent bab1ceb831
commit 16bbcc2c50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 1304 additions and 141 deletions

View file

@ -99,6 +99,17 @@ function useHasAnyOverlay(): boolean {
return panels || globalModal || calling;
}
export function isKeyboardActivation(event: KeyboardEvent): boolean {
if (
hasExactModifiers(event, 'none') &&
(event.key === 'Enter' || event.key === 'Space')
) {
return true;
}
return false;
}
export function useActiveCallShortcuts(
hangUp: (reason: string) => unknown
): KeyboardShortcutHandlerType {