aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-player-manager.ts')
-rw-r--r--client/src/assets/player/peertube-player-manager.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/assets/player/peertube-player-manager.ts b/client/src/assets/player/peertube-player-manager.ts
index ebb1e454a..630eebbca 100644
--- a/client/src/assets/player/peertube-player-manager.ts
+++ b/client/src/assets/player/peertube-player-manager.ts
@@ -452,6 +452,13 @@ export class PeertubePlayerManager {
452 private static addHotkeysOptions (plugins: VideoJSPluginOptions) { 452 private static addHotkeysOptions (plugins: VideoJSPluginOptions) {
453 Object.assign(plugins, { 453 Object.assign(plugins, {
454 hotkeys: { 454 hotkeys: {
455 skipInitialFocus: true,
456 enableInactiveFocus: false,
457 captureDocumentHotkeys: true,
458 documentHotkeysFocusElementFilter: (e: HTMLElement) => {
459 return e.id === 'content' || e.tagName.toLowerCase() === 'body'
460 },
461
455 enableVolumeScroll: false, 462 enableVolumeScroll: false,
456 enableModifiersForNumbers: false, 463 enableModifiersForNumbers: false,
457 464