From 1bd0635325e3d2c7aa395fc14225de9c8d2ef1a9 Mon Sep 17 00:00:00 2001 From: Jonathan Dawson Date: Tue, 12 Nov 2019 12:57:22 -0600 Subject: [PATCH] ignore keydown event when there is no video on apple tv --- inject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inject.js b/inject.js index 54fc4c3..3ce918c 100644 --- a/inject.js +++ b/inject.js @@ -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")) {