diff options
author | Ajay <[email protected]> | 2023-09-23 15:40:11 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-09-23 15:40:11 -0400 |
commit | ee3ce8aa4624ed7f3d8a1f27332a3fe97685c825 (patch) | |
tree | b63c123f6ef15aeba066b50f312cf25475695da6 /src/content.ts | |
parent | 1557af5d2abc97cffaa2f1b4c703ba26f0b8e94d (diff) | |
download | SponsorBlock-ee3ce8aa4624ed7f3d8a1f27332a3fe97685c825.tar.gz SponsorBlock-ee3ce8aa4624ed7f3d8a1f27332a3fe97685c825.zip |
Add seperate keybind for skip to highlight
Fixes #1187
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 7b1c757b..6de4a9e5 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2432,14 +2432,23 @@ function hotkeyListener(e: KeyboardEvent): void { }; const skipKey = Config.config.skipKeybind; + const skipToHighlightKey = Config.config.skipToHighlightKeybind; const startSponsorKey = Config.config.startSponsorKeybind; const submitKey = Config.config.submitKeybind; const nextChapterKey = Config.config.nextChapterKeybind; const previousChapterKey = Config.config.previousChapterKeybind; if (keybindEquals(key, skipKey)) { - if (activeSkipKeybindElement) + if (activeSkipKeybindElement) { activeSkipKeybindElement.toggleSkip.call(activeSkipKeybindElement); + } + + return; + } else if (keybindEquals(key, skipToHighlightKey)) { + if (skipButtonControlBar) { + skipButtonControlBar.toggleSkip.call(skipButtonControlBar); + } + return; } else if (keybindEquals(key, startSponsorKey)) { startOrEndTimingNewSegment(); |