diff options
Diffstat (limited to 'youtube/static')
-rw-r--r-- | youtube/static/js/hotkeys.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js index d505125..b71972e 100644 --- a/youtube/static/js/hotkeys.js +++ b/youtube/static/js/hotkeys.js @@ -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") { |