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/templates/simple/preferences | |
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/templates/simple/preferences')
-rw-r--r-- | searx/templates/simple/preferences/hotkeys.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/searx/templates/simple/preferences/hotkeys.html b/searx/templates/simple/preferences/hotkeys.html new file mode 100644 index 000000000..c13d0c8d2 --- /dev/null +++ b/searx/templates/simple/preferences/hotkeys.html @@ -0,0 +1,23 @@ +<fieldset>{{- '' -}} + <legend id="pref_hotkeys">{{- _('Hotkeys') -}}</legend>{{- '' -}} + <div class="value">{{- '' -}} + <select name="hotkeys" aria-labelledby="pref_hotkeys">{{- '' -}} + <option value="default" + {%- if hotkeys == 'default' %} selected="selected" + {%- endif -%}> + SearXNG{{- '' -}} + </option>{{- '' -}} + <option value="vim" + {%- if hotkeys == 'vim' %} selected="selected" + {%- endif -%}> + {{- _('Vim-like') -}} + </option>{{- '' -}} + </select>{{- '' -}} + </div>{{- '' -}} + <div class="description"> + {{- _( + 'Navigate search results with hotkeys (JavaScript required). ' + 'Press "h" key on main or result page to get help.' + ) -}} + </div>{{- '' -}} +</fieldset>{{- '' -}} |