mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
[mod] the search text input gets the focus automatically only on the index page.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
addListener(w, 'load', function () {
|
||||
var qinput = d.getElementById('q');
|
||||
if (qinput !== null) {
|
||||
if (qinput !== null && qinput.value === "") {
|
||||
addListener(qinput, 'focus', placeCursorAtEnd);
|
||||
qinput.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user