Skip to content

Conversation

@chaim-chv
Copy link
Contributor

Summary

  • Adds keyboard navigation to /search results: ArrowUp/ArrowDown to move selection, Enter to open.
  • Selects the first result by default so Enter opens immediately.
  • Mouse hover/focus also updates (“selects”) the active result card to make it opened with Enter.
  • Pressing / focuses the search input from anywhere (including when focused in results).
  • Includes Playwright coverage for the new interactions.

Closes

@vercel
Copy link

vercel bot commented Jan 25, 2026

@chaim-chv is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 25, 2026 2:54pm

Request Review

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing PR! ❤️

👉 if you'd like to join, we have a discord at https://chat.npmx.dev

@danielroe danielroe merged commit 5a032e3 into npmx-dev:main Jan 25, 2026
7 checks passed
@chaim-chv chaim-chv deleted the keyboard-navigation branch January 25, 2026 15:37
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add keyboard navigation for search results

2 participants