[PR #7987] refactor(web): list navigation with keyboard #11871

Closed
opened 2026-02-05 14:47:26 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/7987

State: closed
Merged: Yes


Adds the use:listNavigation action that can be used to navigate a list with the arrow up/down keys. This action replaces the current implementations to navigate through location and people suggestions.

The current implementation manually tracks the focused element, but this breaks when using Tab or Shift+Tab to navigate. use:listNavigation uses document.activeElement for tracking to avoid this issue. Other than that, behavior should be the same.

**Original Pull Request:** https://github.com/immich-app/immich/pull/7987 **State:** closed **Merged:** Yes --- Adds the `use:listNavigation` action that can be used to navigate a list with the arrow up/down keys. This action replaces the current implementations to navigate through location and people suggestions. The current implementation manually tracks the focused element, but this breaks when using `Tab` or `Shift+Tab` to navigate. `use:listNavigation` uses document.activeElement for tracking to avoid this issue. Other than that, behavior should be the same.
OVERLORD added the pull-request label 2026-02-05 14:47:26 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#11871