onKeyDown: ignore plyr CustomEvents
This commit is contained in:
parent
599a09d7fc
commit
65e7d85549
@ -3,6 +3,7 @@ function onKeyDown(e) {
|
|||||||
|
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
let v = QId("js-video-player");
|
let v = QId("js-video-player");
|
||||||
|
if (!e.isTrusted) return; // plyr CustomEvent
|
||||||
let c = e.key.toLowerCase();
|
let c = e.key.toLowerCase();
|
||||||
if (e.ctrlKey) return;
|
if (e.ctrlKey) return;
|
||||||
else if (c == "k") {
|
else if (c == "k") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user