aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-31 17:11:28 +0200
committerChocobozzz <me@florianbigard.com>2020-07-31 17:11:28 +0200
commite85bfe96fd32e4f1c7ad872448e67f59ca03d020 (patch)
tree0e6e4936c41b3ba31eca63486992f8cfd5a67a0f /client/src
parent08d9ba0f855bcd254151c1000a2a4008a1816ad6 (diff)
downloadPeerTube-e85bfe96fd32e4f1c7ad872448e67f59ca03d020.tar.gz
PeerTube-e85bfe96fd32e4f1c7ad872448e67f59ca03d020.tar.zst
PeerTube-e85bfe96fd32e4f1c7ad872448e67f59ca03d020.zip
Fixes video hotkey part 1
A patch has to be merged in videojs hotkey plugin too
Diffstat (limited to 'client/src')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts3
1 files changed, 2 insertions, 1 deletions
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 {
456 enableInactiveFocus: false, 456 enableInactiveFocus: false,
457 captureDocumentHotkeys: true, 457 captureDocumentHotkeys: true,
458 documentHotkeysFocusElementFilter: (e: HTMLElement) => { 458 documentHotkeysFocusElementFilter: (e: HTMLElement) => {
459 return e.id === 'content' || e.tagName.toLowerCase() === 'body' 459 const tagName = e.tagName.toLowerCase()
460 return e.id === 'content' || tagName === 'body' || tagName === 'video'
460 }, 461 },
461 462
462 enableVolumeScroll: false, 463 enableVolumeScroll: false,