Skip to content

Search: Enter does not activate highlighted result row (follow-up to #344) #406

@intendednull

Description

@intendednull

Why

Follow-up to #344 (PR #403, merged). Search a11y now tracks active_index + emits aria-activedescendant, but Enter still routes to "push to recents" instead of activating the highlighted row.

Fix

Wire Enter in crates/web/src/components/search/input.rs keydown to invoke whatever ResultRow.on_select does for the row at active_index. Keep current "no active row → push recents" path as fallback when results empty.

Verify

Browser test: type query, ArrowDown to highlight non-first row, press Enter, assert navigation/select fires for that row, not the input value.

Notes

Surfaced by #344 agent during PR #403. Inline note in that PR; this issue track separately.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions