From aef2b113f86d5f3a045c949dd609a433ea9dfa3d Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 12 Sep 2024 19:45:35 -0400 Subject: [PATCH] Remove legacy keybdind check --- src/content.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/content.ts b/src/content.ts index cef93488..c9e72dcd 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2587,16 +2587,6 @@ function hotkeyListener(e: KeyboardEvent): void { previousChapter(); return; } - - //legacy - to preserve keybinds for skipKey, startSponsorKey and submitKey for people who set it before the update. (shouldn't be changed for future keybind options) - if (key.key == skipKey?.key && skipKey.code == null && !keybindEquals(Config.syncDefaults.skipKeybind, skipKey)) { - if (activeSkipKeybindElement) - activeSkipKeybindElement.toggleSkip.call(activeSkipKeybindElement); - } else if (key.key == startSponsorKey?.key && startSponsorKey.code == null && !keybindEquals(Config.syncDefaults.startSponsorKeybind, startSponsorKey)) { - startOrEndTimingNewSegment(); - } else if (key.key == submitKey?.key && submitKey.code == null && !keybindEquals(Config.syncDefaults.submitKeybind, submitKey)) { - openSubmissionMenu(); - } } /**