SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[feat] client/simple: move cursor to end of search input on mobile
Amit Katyal5ca70ca17e54
diff --git a/client/simple/src/js/main/search.ts b/client/simple/src/js/main/search.tsindex cbf41a205..c7ce9e090 100644--- a/client/simple/src/js/main/search.ts+++ b/client/simple/src/js/main/search.ts@@ -40,6 +40,18 @@ if (!(isMobile || isResultsPage)) {qInput.focus();}+// On mobile, move cursor to the end of the input on focus+if (isMobile) {+ listen("focus", qInput, () => {+ // Defer cursor move until the next frame to prevent a visual jump+ requestAnimationFrame(() => {+ const end = qInput.value.length;+ qInput.setSelectionRange(end, end);+ qInput.scrollLeft = qInput.scrollWidth;+ });+ });+}+createClearButton(qInput);// Additionally to searching when selecting a new category, we also