mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 21:38:48 +00:00
🐛 Fix duplicate manage of custom shortcuts
This commit is contained in:
parent
f1dac45145
commit
1f22804f6a
@ -43,13 +43,12 @@
|
||||
|
||||
(defn use-shortcuts
|
||||
[key shortcuts group-key]
|
||||
(let [custom-shortcuts (mf/deref refs/custom-shortcuts)]
|
||||
(mf/use-effect
|
||||
#js [(str key) shortcuts custom-shortcuts]
|
||||
(mf/use-effect
|
||||
#js [(str key) shortcuts]
|
||||
(fn []
|
||||
(st/emit! (dsc/push-shortcuts key shortcuts group-key))
|
||||
(fn []
|
||||
(st/emit! (dsc/push-shortcuts key shortcuts group-key))
|
||||
(fn []
|
||||
(st/emit! (dsc/pop-shortcuts key)))))))
|
||||
(st/emit! (dsc/pop-shortcuts key))))))
|
||||
|
||||
(defn- set-timer
|
||||
[state ms func]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user