forked from zaclys/searxng
[mod] the search text input gets the focus automatically only on the index page.
This commit is contained in:
parent
43a6ffcd46
commit
b70b0775f3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue