ignore keydown event when there is no video on apple tv

This commit is contained in:
Jonathan Dawson
2019-11-12 12:57:22 -06:00
parent 4b42da106a
commit 1bd0635325

View File

@@ -399,8 +399,8 @@
// Ignore keydown event if typing in a page without vsc
if (document.querySelector('apple-tv-plus-player')) {
if (queryShadowVideo(document.querySelector('apple-tv-plus-player')).length > 0) {
if (queryShadowVideo(document.querySelector('apple-tv-plus-player')).length == 0) {
return false;
}
}
else if (!document.querySelector(".vsc-controller")) {