summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/js/main/keyboard.js
AgeCommit message (Collapse)Author
2025-02-28[web-client] simple theme: move sources to client/simple/srcMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-24[chore] *: fix typos detected by typos-cliBnyro
2024-04-08[enh] add keybindings for copying URLsYaksh Bariya
'y': for in Vim-mode (yank) 'c': for SearXNG-mode (copy) This should help keyboard heavy users
2023-09-19[mod] reformatted keyBindingLayouts in JS client (default, vim)Jinyuan Huang
2023-09-16[fix] keyboard navigation / simple theme (UI)Jinyuan Huang
- avoid loop select - fix select next item in mixed result lists Replaces: https://github.com/searxng/searxng/pull/2789 Closes: https://github.com/searxng/searxng/issues/2751 Closes: https://github.com/searxng/searxng/issues/2788
2023-09-12[mod] improve handling of the hotkeysMarkus Heiser
- KeyboardEvent: keyCode property is depricated, replaced by key property [2] - the check for ifDetailOpened is not necessary, because the hotkeys are not only applicable to image-results, by example: `!goi !go !scc hello` - Key bindings like h for help are to be used in general (not only in vim-mode) [1] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode [2] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-09-12[feature] key bindings: left & right arrow are always onJinyuan Huang
2022-06-14[fix] keyboard.js - highlightResult: don't steal focus on click eventMarkus Heiser
For keyboard navigation the highlightResult() function in keyboard.js steals the focus. On a mouse click event (non keyboard action) the focus should resist where it is, otherwise a marked region gets lost. This is the reason why 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 <markus.heiser@darmarit.de>
2022-06-13UX fix: when the user clicks on the search input, don't move the cursor at ↵Alexandre Flament
the end Related to https://github.com/searxng/searxng/pull/1153#issuecomment-1154247988
2022-05-07[mod] client_settings: pass settings from server to JS clientMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-03-25[fix] revert changes from #997mrpaulblack
* in #997 there was a bug introduced: #1002 -> for now we just revert the change to make the image detail modal usable again
2022-03-20[fix] Text can't be selected when using simple theme with JS enabledMarkus Heiser
Closes: https://github.com/searxng/searxng/issues/794 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-14[fix] eslint --fixMarkus Heiser
automatically fix some of the problems reported by eslint rules:: $ ./manage nvm.bash nvm-env$ npm --prefix searx/static/themes/simple run eslint-fix Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-05[fix] simple theme: image detail: click on the URL to the HTML page worksAlexandre Flament
Before this commit, the default click event on an image result is prevented, this include clicks inside the detail. This commit makes sure the click happends outside the detail to prevent the default event.
2021-11-05[fix] simple theme: various about the hotkeys helpAlexandre Flament
* dark mode: #555 border (same as infoboxes and other borders) * remove a call to console.log * center the dialog without using the style attribute.
2021-11-05[fix] simple theme: disable hotkeys when they are not enabled in the preferencesAlexandre Flament
2021-11-05[mod] SearXNG: remove "searx" from the searx*.js file names.Alexandre Flament