mirror of
https://github.com/videojs/video.js.git
synced 2025-01-23 11:04:59 +02:00
fix(text track settings): focus subs-caps button if exists over CC button (#4155)
This commit is contained in:
parent
74eb5d4772
commit
db901c54d9
@ -612,9 +612,12 @@ class TextTrackSettings extends ModalDialog {
|
||||
this.off(document, 'keydown', this.handleKeyDown);
|
||||
|
||||
const cb = this.player_.controlBar;
|
||||
const subsCapsBtn = cb && cb.subsCapsButton;
|
||||
const ccBtn = cb && cb.captionsButton;
|
||||
|
||||
if (ccBtn) {
|
||||
if (subsCapsBtn) {
|
||||
subsCapsBtn.focus();
|
||||
} else if (ccBtn) {
|
||||
ccBtn.focus();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user