mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
fix alt-tab in chrome
This commit is contained in:
parent
50c87a6842
commit
0e5606423e
1 changed files with 1 additions and 1 deletions
|
@ -1987,7 +1987,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());
|
||||
window.addEventListener("focus", (e) => pressedKeys.clear());
|
||||
}
|
||||
|
||||
function hotkeyListener(e: KeyboardEvent): void {
|
||||
|
|
Loading…
Reference in a new issue