Skip to content

Commit

Permalink
Prevent Focus Loss When Skip Button is Pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rlauuzo committed Dec 29, 2024
1 parent 469abcc commit 9e6ee42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/playback/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default function (view) {
toggleSubtitleSync('hide');

// Firefox does not blur by itself
if (document.activeElement) {
if (osdBottomElement.contains(document.activeElement)) {
document.activeElement.blur();
}
}
Expand Down Expand Up @@ -1252,7 +1252,7 @@ export default function (view) {

switch (key) {
case 'Enter':
showOsd();
showOsd(e.target.classList.contains('skip-button') ? btnPlayPause : undefined);
break;
case 'Escape':
case 'Back':
Expand Down

0 comments on commit 9e6ee42

Please sign in to comment.