diff --git a/docroot/js/mediaplayer.js b/docroot/js/mediaplayer.js index b50c4ff4..31ffa05d 100644 --- a/docroot/js/mediaplayer.js +++ b/docroot/js/mediaplayer.js @@ -238,7 +238,10 @@ LMS.mediaplayer = function () { document.addEventListener("keydown", function(event) { let handled = false; - if (event.keyCode == 32 && !(event.target instanceof HTMLInputElement)) { + if (event.target instanceof HTMLInputElement) + return; + + if (event.keyCode == 32) { _playPause(); handled = true; }