diff options
author | Ajay <[email protected]> | 2024-09-12 19:45:35 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-09-12 19:45:35 -0400 |
commit | aef2b113f86d5f3a045c949dd609a433ea9dfa3d (patch) | |
tree | 2ad7a0648c33d1c87841e64a7845095b14e7f1b3 | |
parent | e610e03e46fbf4f5bf86a6f0364bc8ab96f47520 (diff) | |
download | SponsorBlock-aef2b113f86d5f3a045c949dd609a433ea9dfa3d.tar.gz SponsorBlock-aef2b113f86d5f3a045c949dd609a433ea9dfa3d.zip |
Remove legacy keybdind check
-rw-r--r-- | src/content.ts | 10 |
1 files changed, 0 insertions, 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(); - } } /** |