chore: enable global shortcuts with the e argument

This commit is contained in:
Tienson Qin
2021-12-07 11:12:43 +08:00
parent d43be37b16
commit fcf0f2cdfc
2 changed files with 4 additions and 6 deletions

View File

@@ -1879,7 +1879,8 @@
(let [blocks (-> (state/get-selection-blocks)
reorder-selected-blocks)
blocks (filter #(= (:block/parent %) (:block/parent (first blocks))) blocks)]
(move-nodes blocks)))))))
(when (seq blocks)
(move-nodes blocks))))))))
;; selections
(defn on-tab