Fixes video hotkey part 1

A patch has to be merged in videojs hotkey plugin too
This commit is contained in:
Chocobozzz 2020-07-31 17:11:28 +02:00
parent 08d9ba0f85
commit e85bfe96fd
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 1 deletions

View File

@ -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,