Skip to content

Commit

Permalink
onKeyDown: ignore plyr CustomEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
zrose584 committed Jul 30, 2022
1 parent 8b63556 commit 3cc6a6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube/static/js/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ function onKeyDown(e) {

// console.log(e);
let v = Q("video");
if (!e.isTrusted) return; // plyr CustomEvent
let c = e.key.toLowerCase();
if (e.ctrlKey) return;
else if (c == "k") {
Expand Down

0 comments on commit 3cc6a6c

Please sign in to comment.