diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-19 16:21:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-19 16:21:50 +0100 |
commit | 04868c13312c96f6c123716c9a04d6b03c544a4e (patch) | |
tree | dd98492584b0c9b5f10673de1915ad8fc5ff70b0 /client/src/assets/player/videojs-components/settings-menu-button.ts | |
parent | 7aeb82ea7e5bf5291066c8382f349cea9eaaefb8 (diff) | |
download | PeerTube-04868c13312c96f6c123716c9a04d6b03c544a4e.tar.gz PeerTube-04868c13312c96f6c123716c9a04d6b03c544a4e.tar.zst PeerTube-04868c13312c96f6c123716c9a04d6b03c544a4e.zip |
Fix player menu keyboard navigation
Diffstat (limited to 'client/src/assets/player/videojs-components/settings-menu-button.ts')
-rw-r--r-- | client/src/assets/player/videojs-components/settings-menu-button.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-button.ts b/client/src/assets/player/videojs-components/settings-menu-button.ts index 50e25c004..c9990af1c 100644 --- a/client/src/assets/player/videojs-components/settings-menu-button.ts +++ b/client/src/assets/player/videojs-components/settings-menu-button.ts | |||
@@ -150,6 +150,9 @@ class SettingsButton extends Button { | |||
150 | this.dialog.show() | 150 | this.dialog.show() |
151 | 151 | ||
152 | this.setDialogSize(this.getComponentSize(this.menu)) | 152 | this.setDialogSize(this.getComponentSize(this.menu)) |
153 | |||
154 | const firstChild = this.menu.children()[0] | ||
155 | if (firstChild) firstChild.focus() | ||
153 | } | 156 | } |
154 | 157 | ||
155 | hideDialog () { | 158 | hideDialog () { |