mirror of https://github.com/Chocobozzz/PeerTube
Fixes video hotkey part 1
A patch has to be merged in videojs hotkey plugin toopull/2926/head
parent
08d9ba0f85
commit
e85bfe96fd
|
@ -456,7 +456,8 @@ export class PeertubePlayerManager {
|
||||||
enableInactiveFocus: false,
|
enableInactiveFocus: false,
|
||||||
captureDocumentHotkeys: true,
|
captureDocumentHotkeys: true,
|
||||||
documentHotkeysFocusElementFilter: (e: HTMLElement) => {
|
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,
|
enableVolumeScroll: false,
|
||||||
|
|
Loading…
Reference in New Issue