aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-09-12 10:17:56 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-09-12 10:17:56 +0200
commit8222b6205b337730b964a27744699edfaed46b29 (patch)
treea73d72cbff8c0053e4dca5f2271a7a8c42e7814a
parent05a7907be4648a7ddaf6c036ad401cac6e10da9f (diff)
downloadyt-local-8222b6205b337730b964a27744699edfaed46b29.tar.lz
yt-local-8222b6205b337730b964a27744699edfaed46b29.tar.xz
yt-local-8222b6205b337730b964a27744699edfaed46b29.zip
hotkeys.js: ignore if e.ctrlKey
-rw-r--r--youtube/static/js/hotkeys.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js
index 8b28f28..b295db9 100644
--- a/youtube/static/js/hotkeys.js
+++ b/youtube/static/js/hotkeys.js
@@ -4,7 +4,8 @@ function onKeyDown(e) {
// console.log(e);
let v = Q("video");
let c = e.key.toLowerCase();
- if (c == "k") {
+ if (e.ctrlKey) return;
+ else if (c == "k") {
v.paused ? v.play() : v.pause();
}
else if (c == "arrowleft") {