mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-22 08:21:35 +01:00
Unlisten to window event and fix hotkeys
This commit is contained in:
1 parent
e4022cf532
commit
0b4e367dfc
2 files changed
+15
-4
No files matched your search
@@ -123,6 +123,7 @@ export function useHotKey(
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
callbackRef.current(e);
|
||||
currentKeys.current.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user