Skip to content

Commit

Permalink
add f button for fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeaux committed Apr 26, 2021
1 parent 1e59d1e commit aec77c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/media.pug
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ block extra_footer_js
script.
$(document).keyup(function (e) {

var oneOfTheUsedKeys = e.keyCode === 37 || e.keyCode === 39 || e.keyCode === 32 || e.keyCode === 13;
var oneOfTheUsedKeys = e.keyCode === 37 || e.keyCode === 39 || e.keyCode === 32 || e.keyCode === 13 || e.keyCode === 70;

if(oneOfTheUsedKeys){
var mediaPlayer = document.getElementById("media_player");
Expand Down Expand Up @@ -1793,7 +1793,7 @@ block extra_footer_js
}
}

if (inputElementNotFocused && e.keyCode === 13) {
if (inputElementNotFocused && ( e.keyCode === 13 || e.keyCode === 70)) {
mediaPlayer.requestFullscreen();
}

Expand Down

0 comments on commit aec77c7

Please sign in to comment.