Unlisten to window event and fix hotkeys

This commit is contained in:
Gregory Schier
2024-05-30 00:29:01 -07:00
parent e4022cf532
commit 0b4e367dfc
2 changed files with 15 additions and 4 deletions

View File

@@ -123,6 +123,7 @@ export function useHotKey(
e.preventDefault();
e.stopPropagation();
callbackRef.current(e);
currentKeys.current.clear();
}
}
}