Skip to content

feat : Full Keyboard Navigation Support for Subject Search Bars #376#377

Merged
karannfr merged 1 commit intoCodeChefVIT:prodfrom
karannfr:prod
Oct 6, 2025
Merged

feat : Full Keyboard Navigation Support for Subject Search Bars #376#377
karannfr merged 1 commit intoCodeChefVIT:prodfrom
karannfr:prod

Conversation

@karannfr
Copy link
Member

@karannfr karannfr commented Oct 6, 2025

📌 Purpose

Add full keyboard navigation support and reliable pin/unpin functionality to the subject search bars.
This PR improves UX by allowing users to navigate suggestions with arrow keys, select with Enter, and autocomplete with Tab, while ensuring pinned subjects and displayed papers update correctly.

Corresponding issue: closes #376

🖼️ Showcase

Screen.Recording.2025-10-06.210541.mp4

🔧 Changes

  • Added keyboard event listeners (onKeyDown) to SearchBarChild and PinnedSearchBar components:
    • ArrowUp / ArrowDown for navigating suggestions
    • Enter for selecting a suggestion or submitting
    • Tab for auto-completing the first suggestion

➕ Additional Notes

  • Handles both normal and pinned search bars consistently
  • Minor styling tweaks for highlighted suggestion state

@karannfr karannfr merged commit 4d7f332 into CodeChefVIT:prod Oct 6, 2025
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.

Full Keyboard Navigation Support for Subject Search Bars

1 participant