keybind fix

This commit is contained in:
Áron Hegymegi-Kiss 2022-02-12 16:19:28 +01:00
parent c9903b5926
commit 60b0a59ba1

View file

@ -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 {