mirror of https://github.com/FreeTubeApp/FreeTube
Fix bubbling events when the video player is focused
This commit is contained in:
parent
3e2dcb27e9
commit
ca364dcaf9
|
@ -99,6 +99,9 @@ let videoShortcutHandler = function (event) {
|
|||
case 32:
|
||||
// Space Bar
|
||||
event.preventDefault();
|
||||
if ($('.videoPlayer').is(':focus')) {
|
||||
return;
|
||||
}
|
||||
if (videoPlayer.paused) {
|
||||
videoPlayer.play();
|
||||
if($('.videoPlayer').is(':hover')) {
|
||||
|
|
Loading…
Reference in New Issue