From 0a8103db7055d2da994d7f5db5f222127542fe71 Mon Sep 17 00:00:00 2001 From: DanX Date: Tue, 28 Jul 2020 19:08:48 -0300 Subject: [PATCH] Select on enter for code completion --- editor/src/maria/editors/code.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/src/maria/editors/code.cljs b/editor/src/maria/editors/code.cljs index bf68a72c..1b3aa4ec 100644 --- a/editor/src/maria/editors/code.cljs +++ b/editor/src/maria/editors/code.cljs @@ -45,6 +45,7 @@ :on-select! (fn [[alias completion full-name]] (hint/clear!) (cm/replace-range! editor completion node)) + :select-on-enter true :items (for [[alias completion full-name] (ns-utils/ns-completions completion-data)] {:value [alias completion full-name] :label [:.flex.items-center.w-100.monospace.f7.ma2.ml0