mirror of
https://github.com/searxng/searxng.git
synced 2026-06-11 04:17:50 +02:00
[mod] client_settings: pass settings from server to JS client
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -154,7 +154,7 @@ searxng.ready(function () {
|
||||
}
|
||||
};
|
||||
|
||||
if (searxng.hotkeys) {
|
||||
if (searxng.settings.hotkeys) {
|
||||
searxng.on(document, "keydown", function (e) {
|
||||
// check for modifiers so we don't break browser's hotkeys
|
||||
if (Object.prototype.hasOwnProperty.call(vimKeys, e.keyCode) && !e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey) {
|
||||
|
||||
Reference in New Issue
Block a user