From 022479d4c26d90bdcf287257dc2709c207d0b733 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 20 Mar 2022 19:30:55 +0100 Subject: [PATCH] [fix] Text can't be selected when using simple theme with JS enabled Closes: https://github.com/searxng/searxng/issues/794 Signed-off-by: Markus Heiser --- searx/static/themes/simple/src/js/main/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);