From d8d42c85412a7f46f599ba17894b435fa0bc6f36 Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Fri, 25 Mar 2022 13:08:17 +0100 Subject: [PATCH] [fix] revert changes from #997 * in #997 there was a bug introduced: #1002 -> for now we just revert the change to make the image detail modal usable again --- 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 3e11f251b..a8ab7222f 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', 'mousedown', function (e) { + searxng.on('.result', 'click', function (e) { if (!isElementInDetail(e.target)) { highlightResult(this)(true); let resultElement = getResultElement(e.target);