Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] the search text input gets the focus automatically

dalf43a6ffcd4644
diff --git a/searx/templates/search.html b/searx/templates/search.html
index 64f0d8f73..07df31ef5 100644
--- a/searx/templates/search.html
+++ b/searx/templates/search.html
@@ -1,6 +1,6 @@
<form method="post" action="/" id="search_form">
<div id="search_wrapper">
- <input type="text" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
+ <input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
<input type="submit" value="" id="search_submit" />
</div>
<div>