-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems about Keyboard Navigation #2788
Comments
I think we should collect the issue we have with the keyboard navigation:
|
Do you mean a simple menu which you can choose one of the |
Yes, currently we already have two layouts .. the default layout (with the Arrows you implemented) and the vim layout, which can be activated in the preferences: The on-off checkbox should be replaced by a drop-down menu --> "default" & "vim-like" .. may be later -- when there is a need -- we can add more layouts .. or we add an option to select "none layout" .. |
good idea, i will try it. |
Thanks a lot for taking the time 👍 The thing with the preferences is a little tricky since (for historical reasons) currently the vim-like hotkeys are registered as a plugin (on/off switch) .. don't fight to long with this, I can then better take over this part (the preferences) of the work. |
ok, you can do the preferences, and i will try to format the code to more extend-able. |
- avoid loop select - fix select next item in mixed result lists Replaces: searxng#2789 Closes: searxng#2751 Closes: searxng#2788
Can you pass the
or you may specified a variable. |
Yes I can .. was also what I had in mint, to use the Line 365 in ec540a9
|
- avoid loop select - fix select next item in mixed result lists Replaces: searxng#2789 Closes: searxng#2751 Closes: searxng#2788
Thanks a lot .. I will cherry pick you patch and implement the preferences part .. when I finished I will send a PR (can take a while). |
No need to be hurry, I shall go and finish my homework now ... |
I cherry picked .. just FYI in your implementations you implemented a "vim" table and a "default" table .. in the old implementation the vim table was a merge, see --> To add Vim-like key bindings, merge the 'vimKeys' into 'keyBindings'. .. I will squash the fix into your commit / you will see it when I send the PR. |
Shall we move the hockey list into a config file? It's more likely to be there instead of in the source code. |
I had already thought about that ... but let's finish the #2795 first. Afterwards we can cleanup the code .. at this opportunity we could also work on the point I mentioned above
|
Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG
since #2724 .
What happened?
When using arrowkey-navigation on first/last result, it will jump to bottom/top (that is, loop select).
I think it's not good for the UX, but seems you write a special code that cause this "bug".
searxng/searx/static/themes/simple/src/js/main/keyboard.js
Lines 237 to 239 in ec540a9
i think it shouldn't act like that, because users will be confused by this sudden jump.
How To Reproduce
Arrow-Left
and you will see the page has scrolled to bottom (the last result).
Expected behavior
do nothing
The text was updated successfully, but these errors were encountered: