summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/js
diff options
context:
space:
mode:
authormrpaulblack <paul@paulgo.io>2022-03-25 13:08:17 +0100
committermrpaulblack <paul@paulgo.io>2022-03-25 13:08:17 +0100
commitd8d42c85412a7f46f599ba17894b435fa0bc6f36 (patch)
treee9aa0715a659960c00d3bc9ffa364162702c5c77 /searx/static/themes/simple/src/js
parent16aa731053f6ff90e649939ae30b8ad74f106fef (diff)
downloadsearxng-d8d42c85412a7f46f599ba17894b435fa0bc6f36.tar.gz
searxng-d8d42c85412a7f46f599ba17894b435fa0bc6f36.zip
[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
Diffstat (limited to 'searx/static/themes/simple/src/js')
-rw-r--r--searx/static/themes/simple/src/js/main/keyboard.js2
1 files changed, 1 insertions, 1 deletions
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);