From e85bfe96fd32e4f1c7ad872448e67f59ca03d020 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jul 2020 17:11:28 +0200 Subject: Fixes video hotkey part 1 A patch has to be merged in videojs hotkey plugin too --- client/src/assets/player/peertube-player-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts index 630eebbca..7fa84e195 100644 --- a/client/src/assets/player/peertube-player-manager.ts +++ b/client/src/assets/player/peertube-player-manager.ts @@ -456,7 +456,8 @@ export class PeertubePlayerManager { enableInactiveFocus: false, captureDocumentHotkeys: true, documentHotkeysFocusElementFilter: (e: HTMLElement) => { - return e.id === 'content' || e.tagName.toLowerCase() === 'body' + const tagName = e.tagName.toLowerCase() + return e.id === 'content' || tagName === 'body' || tagName === 'video' }, enableVolumeScroll: false, -- cgit v1.2.3