From aec77c71aadc0f9030ef294ea1f03252cbc24ddf Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 26 Apr 2021 23:37:30 +0200 Subject: [PATCH] add f button for fullscreen --- views/media.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/media.pug b/views/media.pug index a2fb45a2..a272d859 100644 --- a/views/media.pug +++ b/views/media.pug @@ -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"); @@ -1793,7 +1793,7 @@ block extra_footer_js } } - if (inputElementNotFocused && e.keyCode === 13) { + if (inputElementNotFocused && ( e.keyCode === 13 || e.keyCode === 70)) { mediaPlayer.requestFullscreen(); }