From d1c09c84e21ac66d2701e74dd25dbbf33895c0f9 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 5 Nov 2021 10:26:01 +0100 Subject: [fix] simple theme: disable hotkeys when they are not enabled in the preferences --- searx/static/themes/simple/src/js/head/00_init.js | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/static/themes/simple/src/js/head') diff --git a/searx/static/themes/simple/src/js/head/00_init.js b/searx/static/themes/simple/src/js/head/00_init.js index 4406b764e..d359a9174 100644 --- a/searx/static/themes/simple/src/js/head/00_init.js +++ b/searx/static/themes/simple/src/js/head/00_init.js @@ -21,6 +21,7 @@ autocompleter: script.getAttribute('data-autocompleter') === 'true', search_on_category_select: script.getAttribute('data-search-on-category-select') === 'true', infinite_scroll: script.getAttribute('data-infinite-scroll') === 'true', + hotkeys: script.getAttribute('data-hotkeys') === 'true', static_path: script.getAttribute('data-static-path'), translations: JSON.parse(script.getAttribute('data-translations')), }; -- cgit v1.2.3