mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Remove legacy keybdind check
This commit is contained in:
parent
e610e03e46
commit
aef2b113f8
1 changed files with 0 additions and 10 deletions
|
@ -2587,16 +2587,6 @@ function hotkeyListener(e: KeyboardEvent): void {
|
||||||
previousChapter();
|
previousChapter();
|
||||||
return;
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue