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 2cef46b46a
commit 90637fda6b
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();
}
}
}