From 4049d2d1ab68c59eaf1a0e24efd03efdc24dd6c3 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 3 Feb 2020 23:39:41 -0500 Subject: [PATCH] Fixed keybind not working --- src/content.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content.ts b/src/content.ts index 833fcc8d..015a4ffb 100644 --- a/src/content.ts +++ b/src/content.ts @@ -188,7 +188,7 @@ if (!SB.configListeners.includes(contentConfigUpdateListener)) { } //check for hotkey pressed -document.onkeydown = async function(e){ +document.onkeydown = function(e: KeyboardEvent){ var key = e.key; let video = document.getElementById("movie_player"); @@ -199,10 +199,10 @@ document.onkeydown = async function(e){ //is the video in focus, otherwise they could be typing a comment if (document.activeElement === video) { - if(key == startSponsorKey.startSponsorKeybind){ + if(key == startSponsorKey){ //semicolon startSponsorClicked(); - } else if (key == submitKey.submitKeybind) { + } else if (key == submitKey) { //single quote submitSponsorTimes(); }