mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: don't trigger property shortcuts when editing
This commit is contained in:
@@ -895,7 +895,8 @@
|
||||
(not (util/input? (.-target e)))
|
||||
(not (seq @jump-handler/*jump-data))
|
||||
(not= (shui-dialog/get-last-modal-id) :property-dialog)
|
||||
(not @(:editor/latest-shortcut @state/state)))
|
||||
(not @(:editor/latest-shortcut @state/state))
|
||||
(not (state/editing?)))
|
||||
(let [shift? (.-shiftKey e)
|
||||
shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
|
||||
(db-property-handler/set-property-by-shortcut! shortcut)))
|
||||
|
||||
Reference in New Issue
Block a user