aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts11
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();