From: marc tobias Date: Sun, 11 Dec 2022 02:35:40 +0000 (+0100) Subject: autofocus on search fields X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/commitdiff_plain/2f8b33afce5cd34432db91fbd4d6950bd38359a3 autofocus on search fields --- diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index e7520ad..e50bbdf 100644 --- a/src/components/SearchSection.svelte +++ b/src/components/SearchSection.svelte @@ -95,7 +95,8 @@ type="text" class="form-control form-control-sm" placeholder="Search" - value="{api_request_params.q || ''}" /> + value="{api_request_params.q || ''}" + autofocus />
diff --git a/src/components/SearchSectionDetails.svelte b/src/components/SearchSectionDetails.svelte index a779b4f..c30f057 100644 --- a/src/components/SearchSectionDetails.svelte +++ b/src/components/SearchSectionDetails.svelte @@ -30,7 +30,8 @@ + value="{api_request_params.osmtype || ''}{api_request_params.osmid || ''}{api_request_params.place_id || ''}" + autofocus />
diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index a455a4e..e8f1a47 100644 --- a/src/components/SearchSectionReverse.svelte +++ b/src/components/SearchSectionReverse.svelte @@ -49,6 +49,7 @@ class="form-control form-control-sm d-inline" placeholder="latitude" pattern="^-?\d+(\.\d+)?$" + autofocus bind:value={lat} on:change={maybeSplitLatitude} />