diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-20 19:30:55 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-03-20 19:32:40 +0100 |
commit | 022479d4c26d90bdcf287257dc2709c207d0b733 (patch) | |
tree | c27c6231fd4afd85823a03a706f968f6fbc01a66 /searx/static/themes/simple/src/js | |
parent | 728b2b57963c46d17c47cdceef6ed68ee4668bc2 (diff) | |
download | searxng-022479d4c26d90bdcf287257dc2709c207d0b733.tar.gz searxng-022479d4c26d90bdcf287257dc2709c207d0b733.zip |
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/src/js')
-rw-r--r-- | searx/static/themes/simple/src/js/main/keyboard.js | 2 |
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 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); |