Skip to content

feat(chat): clear search input with ESC key (NSOC'26)#90

Merged
Shriii19 merged 1 commit into
Shriii19:masterfrom
SrashtiChauhan:fix/chat-search-esc-clear
May 22, 2026
Merged

feat(chat): clear search input with ESC key (NSOC'26)#90
Shriii19 merged 1 commit into
Shriii19:masterfrom
SrashtiChauhan:fix/chat-search-esc-clear

Conversation

@SrashtiChauhan
Copy link
Copy Markdown
Contributor

NSOC'26

PR Description

Summary

Improved keyboard accessibility in Team Chat search by adding support for clearing the search input using the Escape (ESC) key.

Changes Made

  • Added clearSearch() helper function

  • Added onKeyDown event handler to search input

  • Detects Escape key press

  • Reused existing clear button logic through shared clearSearch() function

  • Clears:

    • search query
    • filtered messages
    • highlighted search matches

Result

Users can now quickly reset chat search results using keyboard shortcuts for a smoother and more accessible experience.

Tech Stack

  • Next.js
  • React
  • Tailwind CSS

Closes #86

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

@SrashtiChauhan is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

👋 Thank you for opening this pull request! I will review your changes and assist you soon.

@SrashtiChauhan
Copy link
Copy Markdown
Contributor Author

SrashtiChauhan commented May 22, 2026

hi @Shriii19 ,
Kindly review my pr
Thank you

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
flow-forge Building Building Preview, Comment May 22, 2026 4:02pm

@Shriii19 Shriii19 merged commit 53240ce into Shriii19:master May 22, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Clear Chat Search Using ESC Key (NSOC'26)

2 participants