Unlisten to window event and fix hotkeys

This commit is contained in:
Gregory Schier committed 2024-05-30 00:29:01 -07:00
1 parent e4022cf532
commit 0b4e367dfc
2 files changed
+15 -4

No files matched your search

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