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

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

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

@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

SrashtiChauhan commented May 22, 2026 •

Copy link
Copy Markdown
Contributor Author

hi @Shriii19 ,
Kindly review my pr
Thank you

@vercel

vercel Bot commented May 22, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flow-forge Error Error May 23, 2026 3:51pm

@Shriii19
Shriii19 merged commit 53240ce into Shriii19:master May 22, 2026
6 of 7 checks passed

This branch had an error being deployed

1 failed deployment
Preview — 538fb075 Deployed May 23, 2026 by vercel[bot]
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