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] Text can't be selected when using simple theme with JS enabled

Markus Heiser022479d4c26d
diff --git a/searx/static/themes/simple/src/js/main/keyboard.js b/searx/static/themes/simple/src/js/main/keyboard.js
index a8ab7222f..3e11f251b 100644
--- a/searx/static/themes/simple/src/js/main/keyboard.js
+++ b/searx/static/themes/simple/src/js/main/keyboard.js
@@ -32,7 +32,7 @@ searxng.ready(function () {
return resultElement && resultElement.classList.contains('result-images');
}
- searxng.on('.result', 'click', function (e) {
+ searxng.on('.result', 'mousedown', function (e) {
if (!isElementInDetail(e.target)) {
highlightResult(this)(true);
let resultElement = getResultElement(e.target);