mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-01 20:44:06 +01:00
Hotkey for creating environment when dialog open
This commit is contained in:
1 parent
3f5b5a397c
commit
b2766509e3
3 files changed
+12
-4
No files matched your search
@@ -118,7 +118,7 @@ export function useHotKey(
|
||||
return [...without, newCb];
|
||||
});
|
||||
return () => {
|
||||
jotaiStore.set(callbacksAtom, (prev) => prev.filter((cb) => cb.action !== action));
|
||||
jotaiStore.set(callbacksAtom, (prev) => prev.filter((cb) => cb.callback !== callback));
|
||||
};
|
||||
}, [action, callback, options]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user