aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/static')
-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") {