Explorar el Código

fix: disable property shortcut in jump mode

Tienson Qin hace 1 año
padre
commit
89cc97a150
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/main/frontend/components/container.cljs

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

@@ -35,6 +35,7 @@
             [frontend.handler.whiteboard :as whiteboard-handler]
             [frontend.handler.recent :as recent-handler]
             [frontend.handler.db-based.property :as db-property-handler]
+            [frontend.handler.jump :as jump-handler]
             [frontend.mixins :as mixins]
             [frontend.mobile.action-bar :as action-bar]
             [frontend.mobile.footer :as footer]
@@ -897,7 +898,8 @@
 
                         (and (seq (state/get-selection-block-ids))
                              (not (or (.-ctrlKey e) (.-metaKey e) (.-altKey e)))
-                             (not (util/input? (.-target e))))
+                             (not (util/input? (.-target e)))
+                             (not (seq @jump-handler/*jump-data)))
                         (let [shift? (.-shiftKey e)
                               shortcut (if shift? (str "shift+" (.-key e)) (.-key e))]
                           (db-property-handler/set-property-by-shortcut! shortcut)))))))