mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
keybind fix
This commit is contained in:
parent
c9903b5926
commit
60b0a59ba1
1 changed files with 1 additions and 0 deletions
|
@ -1982,6 +1982,7 @@ function addPageListeners(): void {
|
|||
function addHotkeyListener(): void {
|
||||
document.addEventListener("keydown", hotkeyListener);
|
||||
document.addEventListener("keyup", (e) => pressedKeys.delete(e.key));
|
||||
document.addEventListener("focus", (e) => pressedKeys.clear());
|
||||
}
|
||||
|
||||
function hotkeyListener(e: KeyboardEvent): void {
|
||||
|
|
Loading…
Reference in a new issue