1
0
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:
Gary Katsevman 2017-03-02 17:53:47 -05:00 committed by GitHub
parent 74eb5d4772
commit db901c54d9

View File

@ -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();
}
}