Browse Source

fix(api): return non transferable value for plugin api

charlie 3 years ago
parent
commit
2b94a95f11
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/frontend/handler/editor.cljs

+ 4 - 2
src/main/frontend/handler/editor.cljs

@@ -1252,7 +1252,8 @@
 
       ;; if different direction, keep clear until one left
     (state/selection?)
-    (clear-last-selected-block!)))
+    (clear-last-selected-block!))
+  nil)
 
 (defn on-select-block
   [direction]
@@ -3053,7 +3054,8 @@
         (select-up-down direction)
 
         :else
-        (select-first-last direction)))))
+        (select-first-last direction)))
+    nil))
 
 (defn shortcut-select-up-down [direction]
   (fn [e]