fix: disable shortcut property when property dialog is opened

This commit is contained in:
Tienson Qin
2024-05-27 23:03:24 +08:00
parent 21e480ec3e
commit 8de8377d4b
2 changed files with 7 additions and 2 deletions

View File

@@ -899,7 +899,8 @@
(and (seq (state/get-selection-block-ids))
(not (or (.-ctrlKey e) (.-metaKey e) (.-altKey e)))
(not (util/input? (.-target e)))
(not (seq @jump-handler/*jump-data)))
(not (seq @jump-handler/*jump-data))
(not= (shui-dialog/get-last-modal-id) :property-dialog))
(let [shift? (.-shiftKey e)
shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
(db-property-handler/set-property-by-shortcut! shortcut)))))))