🐛 Fix duplicate manage of custom shortcuts

This commit is contained in:
Eva Marco 2026-08-05 09:45:55 +02:00
parent f1dac45145
commit 1f22804f6a

View File

@ -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]