From 8222b6205b337730b964a27744699edfaed46b29 Mon Sep 17 00:00:00 2001 From: zrose584 <57181548+zrose584@users.noreply.github.com> Date: Sat, 12 Sep 2020 10:17:56 +0200 Subject: hotkeys.js: ignore if e.ctrlKey --- youtube/static/js/hotkeys.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'youtube/static/js') 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") { -- cgit v1.2.3