fix: shortcut conflicts

This commit is contained in:
Peng Xiao
2022-08-24 14:13:14 +08:00
parent 6b3c5bbd2c
commit 4151a520e0

View File

@@ -33,7 +33,7 @@
(defn enable-when-not-component-editing!
[f]
(fn [e]
(when (or (contains? #{:srs} (state/get-modal-id))
(not (state/block-component-editing?))
(not (whiteboard/tldraw-idle?)))
(when (and (or (contains? #{:srs} (state/get-modal-id))
(not (state/block-component-editing?)))
(not (whiteboard/tldraw-idle?)))
(f e))))