Skip to content

Commit

Permalink
Merge pull request #115 from zrose584/fix_f
Browse files Browse the repository at this point in the history
hotkeys.js: fix 'f' fullscreen shortcut not working properly with plyr (no controls)
  • Loading branch information
user234683 authored Jan 29, 2022
2 parents 932fde4 + 14118b2 commit bb86f78
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions youtube/static/js/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ function onKeyDown(e) {
}
else if (c == "f") {
e.preventDefault();
if (document.fullscreen) document.exitFullscreen();
else v.requestFullscreen();
if (data.settings.video_player == 1)
player.fullscreen.toggle()
else {
if (document.fullscreen) document.exitFullscreen();
else v.requestFullscreen();
}
}
else if (c == "c") {
e.preventDefault();
Expand Down

0 comments on commit bb86f78

Please sign in to comment.