From 022479d4c26d90bdcf287257dc2709c207d0b733 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 20 Mar 2022 19:30:55 +0100 Subject: [PATCH 1/2] [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); From 11b2724b29dbe5084742740ec815a87ea343c8ab Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 20 Mar 2022 19:31:37 +0100 Subject: [PATCH 2/2] [build] /static --- .../themes/oscar/css/logicodev.min.css.map | Bin 10360 -> 10359 bytes searx/static/themes/simple/js/searxng.min.js | Bin 24898 -> 24902 bytes .../themes/simple/js/searxng.min.js.map | Bin 84008 -> 84012 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/searx/static/themes/oscar/css/logicodev.min.css.map b/searx/static/themes/oscar/css/logicodev.min.css.map index a3e25d3cfb6e068f0df493d3ce2fb36ef52b41bf..7a987dbc44587c90f78d838c298085c70297b106 100644 GIT binary patch delta 66 zcmV-I0KNbCQ1?)fd6Ulp5RpR@k;Wvk#t8wF@&VA3paKe!c@~lZ3A4fi;1U5+v!fM} Y0s&LAH5ix-0YkISBzyw_Lz7G>ETCN&(EtDd delta 58 zcmew!@FQSC<>bXoVjDXh7$;T=OwM5xo_vz=!sbIv4}=(A1@Y@&m=3ewIgcM4_QG$VJuTYK~+pF QM?pg~lkxT;vrqQfQH{$N6#xJL delta 49 zcmV-10M7rckOioa1+Z=-1!HV!V{4PVBto;fBWltQQ9(gdEK@;2RZJ{LK|^+v_4XmN HQ})?W;^-7q