Fluent-Search
Fluent-Search copied to clipboard
Traversing Search Bar Results with Arrow Keys Is Inconsistent
Describe the bug Traversing search bar results with arrow keys is inconsistent. When moving down (with the down arrow key), you must first navigate to the last visible result, then each new down arrow press reveals one new result at a time. However, the same does not apply in reverse. When the focus is on the last result and you move up, the focus remains on the last result even if there are visible new results above. It should traverse the entire search result list upwards, and only then reveal new results one at a time.
To Reproduce Steps to reproduce the behavior:
- Open the search bar and input a query.
- Use the down arrow key to traverse the results.
- Observe that you must first reach the last visible result before revealing new results one at a time.
- Use the up arrow key to traverse back up.
- Observe that the focus remains on the last result even if there are visible results above it.
Expected behavior When traversing down, the arrow keys should first navigate through the entire list without moving the actual view, then reveal one new search result at a time. When traversing up, the focus should first navigate through the entire list, then reveal one new search result at a time.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Windows 11 Version: 22H2
- Fluent Search Version: 1.0.0.43
- Installation source: Installer (nightly)
Additional context By highlighted result I mean the one with a slightly darker shade.