aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-11 16:19:11 +1000
committerSam Potts <sam@potts.es>2018-06-11 16:19:11 +1000
commit38f10d4cc67b3109189699f7e65189a852064236 (patch)
tree9c92b8d230b46bb6ab72fe23d25005f95ad05bde /src/js/plyr.js
parent7c6d4666e99f1604c28c57bec12f16bd0fb7e79c (diff)
downloadplyr-38f10d4cc67b3109189699f7e65189a852064236.tar.lz
plyr-38f10d4cc67b3109189699f7e65189a852064236.tar.xz
plyr-38f10d4cc67b3109189699f7e65189a852064236.zip
WIP
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index ce3d3be5..65f24239 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -260,9 +260,6 @@ class Plyr {
utils.wrap(this.media, this.elements.container);
}
- // Allow focus to be captured
- this.elements.container.setAttribute('tabindex', 0);
-
// Add style hook
ui.addStyleHook.call(this);
@@ -849,7 +846,7 @@ class Plyr {
// Update state and trigger event
if (active !== this.captions.active) {
this.captions.active = active;
- utils.dispatchEvent.call(this, this.media, this.captions.active ? 'captionsenabled' : 'captionsdisabled');
+ utils.dispatchEvent.call(this, this.media, this.captions.active ? 'captionsenabled' : 'captionsdisabled');
}
}