diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-09-16 17:14:18 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-09-19 08:06:06 +0200 |
commit | 317db5b04f6de919e996df943f7f0a845b8238a9 (patch) | |
tree | 913bf68346fbd18b5cd0363658c259dbac4a1b4f /searx/webapp.py | |
parent | 09935e289730027f6d7e1476916381bd6a98349c (diff) | |
download | searxng-317db5b04f6de919e996df943f7f0a845b8238a9.tar.gz searxng-317db5b04f6de919e996df943f7f0a845b8238a9.zip |
[mod] preferences: implement drop-down menu for hotkeys (default, vim)
Replace the on/off checkbox of the vim-hotkeys in the preferences by a drop-down
menu.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 719ff92a1..fe6dd6b74 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -362,7 +362,7 @@ def get_client_settings(): 'infinite_scroll': req_pref.get_value('infinite_scroll'), 'translations': get_translations(), 'search_on_category_select': req_pref.get_value('searx.plugins.search_on_category_select'), - 'hotkeys': req_pref.plugins.choices['searx.plugins.vim_hotkeys'], + 'hotkeys': req_pref.get_value('hotkeys'), 'theme_static_path': custom_url_for('static', filename='themes/simple'), } @@ -390,6 +390,7 @@ def render(template_name: str, **kwargs): kwargs['autocomplete'] = request.preferences.get_value('autocomplete') kwargs['infinite_scroll'] = request.preferences.get_value('infinite_scroll') kwargs['search_on_category_select'] = request.preferences.get_value('search_on_category_select') + kwargs['hotkeys'] = request.preferences.get_value('hotkeys') kwargs['results_on_new_tab'] = request.preferences.get_value('results_on_new_tab') kwargs['advanced_search'] = request.preferences.get_value('advanced_search') kwargs['query_in_title'] = request.preferences.get_value('query_in_title') |