Procházet zdrojové kódy

enhance: shift+up/down for smooth select and alt+up/down for block select

Tienson Qin před 3 roky
rodič
revize
1ff87706f6
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/main/frontend/modules/shortcut/config.cljs

+ 4 - 4
src/main/frontend/modules/shortcut/config.cljs

@@ -174,16 +174,16 @@
    :editor/open-edit               {:binding "enter"
                                     :fn      (partial editor-handler/open-selected-block! :right)}
 
-   :editor/select-block-up         {:binding "shift+up"
+   :editor/select-block-up         {:binding "alt+up"
                                     :fn      (editor-handler/on-select-block :up)}
 
-   :editor/select-block-down       {:binding "shift+down"
+   :editor/select-block-down       {:binding "alt+down"
                                     :fn      (editor-handler/on-select-block :down)}
 
-   :editor/select-up               {:binding false
+   :editor/select-up               {:binding "shift+up"
                                     :fn      (editor-handler/shortcut-select-up-down :up)}
 
-   :editor/select-down             {:binding false
+   :editor/select-down             {:binding "shift+down"
                                     :fn      (editor-handler/shortcut-select-up-down :down)}
 
    :editor/delete-selection        {:binding ["backspace" "delete"]