瀏覽代碼

fix: ignore input when use properties with shortcuts

Tienson Qin 1 年之前
父節點
當前提交
a232e11107
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/components/container.cljs

+ 2 - 1
src/main/frontend/components/container.cljs

@@ -896,7 +896,8 @@
                           (hide-context-menu-and-clear-selection e))
 
                         (and (seq (state/get-selection-block-ids))
-                             (not (or (.-ctrlKey e) (.-metaKey e) (.-altKey e))))
+                             (not (or (.-ctrlKey e) (.-metaKey e) (.-altKey e)))
+                             (not (util/input? (.-target e))))
                         (let [shift? (.-shiftKey e)
                               shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
                           (db-property-handler/set-property-by-shortcut! shortcut)))))))