From a8d4cbcff0a523ac8448c2efc31448b8c0e81119 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 6 May 2025 12:04:26 +0200 Subject: [PATCH] Keep focus in place when navigating and morphing --- app/views/commands/_form.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/commands/_form.html.erb b/app/views/commands/_form.html.erb index 49af1020e..50228b24f 100644 --- a/app/views/commands/_form.html.erb +++ b/app/views/commands/_form.html.erb @@ -13,7 +13,8 @@ class: "terminal__input input fill-transparent unpad", data: { commands_target: "input", - action: "keydown.up->toggle-class#add:prevent keydown.down->toggle-class#remove:prevent" + action: "keydown.up->toggle-class#add:prevent keydown.down->toggle-class#remove:prevent", + turbo_permanent: true }, placeholder: "Search or type commands…" %> <% end %>