onKeyDown: ignore plyr CustomEvents

This commit is contained in:
zrose584 2022-07-30 17:35:53 +02:00 committed by Jesus
parent 599a09d7fc
commit 65e7d85549
No known key found for this signature in database
GPG Key ID: 1CF930FB60A48142

View File

@ -3,6 +3,7 @@ function onKeyDown(e) {
// console.log(e);
let v = QId("js-video-player");
if (!e.isTrusted) return; // plyr CustomEvent
let c = e.key.toLowerCase();
if (e.ctrlKey) return;
else if (c == "k") {