Browse Source

[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
mrpaulblack 3 years ago
parent
commit
d8d42c8541
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/static/themes/simple/src/js/main/keyboard.js

+ 1 - 1
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);