Prevent prev/next song shortcut to trigger while in input element

This commit is contained in:
emeric
2020-09-03 10:52:40 +02:00
parent 64f476ceca
commit 4a101f4fb7
+4 -1
View File
@@ -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;
}