Tab focus
This commit is contained in:
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -2130,7 +2130,16 @@
|
|||||||
checkFocus();
|
checkFocus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
_on(document.body, 'click', checkFocus);
|
_on(document.body, 'click', function() {
|
||||||
|
_toggleClass(_getElement('.' + config.classes.tabFocus), config.classes.tabFocus, false);
|
||||||
|
});
|
||||||
|
for (var button in plyr.buttons) {
|
||||||
|
var element = plyr.buttons[button];
|
||||||
|
|
||||||
|
_on(element, 'blur', function() {
|
||||||
|
_toggleClass(element, 'tab-focus', false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Play
|
// Play
|
||||||
_on(plyr.buttons.play, 'click', function() { _togglePlay(true); });
|
_on(plyr.buttons.play, 'click', function() { _togglePlay(true); });
|
||||||
|
Reference in New Issue
Block a user