Skip to content

Commit

Permalink
hotkeys.js: fix 'f' and plyr
Browse files Browse the repository at this point in the history
  • Loading branch information
zrose584 committed Jan 6, 2022
1 parent 000501e commit 14118b2
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 14118b2

Please sign in to comment.