mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Ignore key event without vsc (#405)
It was causing problem with force disable key bindings and it will fix it.
This commit is contained in:

committed by
Ilya Grigorik

parent
e24b95dd84
commit
7c633f3986
@@ -317,6 +317,11 @@ chrome.runtime.sendMessage({}, function(response) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ignore keydown event if typing in a page without vsc
|
||||
if (!document.querySelector(".vsc-controller")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (keyCode == tc.settings.displayKeyCode) {
|
||||
runAction('display', document, true)
|
||||
}
|
||||
|
Reference in New Issue
Block a user