Prevent prev/next song shortcut to trigger while in input element
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user