mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
fix: don't show property dialog if matched with other shortcuts
This commit is contained in:
@@ -900,10 +900,12 @@
|
||||
(not (or (.-ctrlKey e) (.-metaKey e) (.-altKey e)))
|
||||
(not (util/input? (.-target e)))
|
||||
(not (seq @jump-handler/*jump-data))
|
||||
(not= (shui-dialog/get-last-modal-id) :property-dialog))
|
||||
(not= (shui-dialog/get-last-modal-id) :property-dialog)
|
||||
(not @(:editor/latest-shortcut @state/state)))
|
||||
(let [shift? (.-shiftKey e)
|
||||
shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
|
||||
(db-property-handler/set-property-by-shortcut! shortcut)))))))
|
||||
(db-property-handler/set-property-by-shortcut! shortcut)))
|
||||
(state/set-state! :editor/latest-shortcut nil)))))
|
||||
[state route-match main-content]
|
||||
(let [{:keys [open-fn]} state
|
||||
current-repo (state/sub :git/current-repo)
|
||||
|
||||
Reference in New Issue
Block a user