We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8a6ab commit 706f308Copy full SHA for 706f308
src/hooks/useBindKeyToAction.ts
@@ -17,7 +17,7 @@ function useBindKeyToAction({ keys, action }: UseBindKeyToActionProps) {
17
window?.addEventListener("keydown", handler);
18
19
return () => {
20
- window?.addEventListener("keydown", handler);
+ window?.removeEventListener("keydown", handler);
21
};
22
}, [action, keys]);
23
}
0 commit comments