From 4373a8c012772322f37848bed114ff643705047c Mon Sep 17 00:00:00 2001 From: inoas Date: Wed, 24 Jul 2024 22:17:27 +0200 Subject: [PATCH] add autofocus to search input control --- apps/frontend/src/frontend/view/search_input/search_input.gleam | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/frontend/src/frontend/view/search_input/search_input.gleam b/apps/frontend/src/frontend/view/search_input/search_input.gleam index df3bdf6..da95156 100644 --- a/apps/frontend/src/frontend/view/search_input/search_input.gleam +++ b/apps/frontend/src/frontend/view/search_input/search_input.gleam @@ -20,6 +20,7 @@ pub fn view(loading loading: Bool, input input: String, small small: Bool) { a.value(input), a.attribute("autocorrect", "off"), a.attribute("autocapitalize", "none"), + a.attribute("autofocus", "autofocus"), ]), s.shortcut_hint([], [el.text(modifier <> " + K")]), ]),