[Bug]: Brave search: Cycling through web results doesn't work
Related issues
- [X] I have searched the existing issues
What happened?
The arrow down and up don't work to cycle through search results when using brave search. On the images tab, everything works on Firefox, but on Chrome, only the arrows to the left and right seem to work. With j and k it's the same, and other shortcuts like focusing the search bar worked fine (on chrome at least, on Firefox the escape key didn't work either). With the News tab the arrows worked, but it always focused the image beside it separately (which was kinda annoying) and on Firefox it just scrolled through the page when pressing the up and down arrows.
Browsers
Chrome, Firefox
Other extensions
Yes
Version
0.5.2
Troubleshooting result
- [X] I have followed the troubleshooting section
Anything else
On Google search, everything works flawlessly.
Is the "i" key for Images work for you on Google Search?
No it doesn't. And when i manually go to the image tab, it also only allows me to use the up and down key to navigate - a bit unconvinient.
Same issue for me. Any updates on this?
It looks to me like the nodes in BraveSearch class' included elements are wrong:
const includedElements = [
{
nodes: document.querySelectorAll('.snippet.fdb > a'),
highlightClass: 'wsn-brave-search-focused-link',
containerSelector: (n) => n.parentElement,
},
...
From my random Brave searches I couldn't find any fdb classes, only snippets. Changing ".snippet.fdb" to just ".snippet" appears to be a step in the right direction:
I can try to fix this myself if that's cool with you @infokiller
Brave Search now has built-in shortcuts for cycling trough search results with the arrow keys. that works for me now