Skip to content

feat: add enter key support in team chat(NSOC'26)#72

Merged
Shriii19 merged 1 commit into
Shriii19:masterfrom
SrashtiChauhan:feat/chat-enter-key-support
May 18, 2026
Merged

feat: add enter key support in team chat(NSOC'26)#72
Shriii19 merged 1 commit into
Shriii19:masterfrom
SrashtiChauhan:feat/chat-enter-key-support

Conversation

@SrashtiChauhan
Copy link
Copy Markdown
Contributor

NSOC'26

Overview

This PR improves the Team Chat experience by adding keyboard support for sending messages directly using the Enter key.

Users can now send messages faster while still being able to create multiline messages using Shift + Enter.


Related Issue

Closes #65


Features Added

Enter Key Support

  • Pressing Enter now sends the message instantly

Multiline Message Support

  • Pressing Shift + Enter creates a new line
  • Prevents accidental message sending while typing multiline messages

Chat Input Improvements

  • Replaced single-line input with responsive textarea
  • Preserved existing Team Chat styling and layout

Technical Improvements

  • Added keyboard event handling for textarea
  • Added conditional Enter/Shift+Enter behavior
  • Prevented default form submission behavior when sending messages

Tech Stack

  • Next.js
  • React
  • Tailwind CSS
  • Socket.IO

Tested

  • Enter key message sending
  • Shift + Enter multiline messages
  • Empty message prevention
  • Existing send button functionality
  • Responsive textarea behavior

Preview

  • Keyboard-based message sending
  • Multiline chat input support

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 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

HI @Shriii19 ,
Kindly review my pr.
Thank you
NSOC'26

1 similar comment
@SrashtiChauhan
Copy link
Copy Markdown
Contributor Author

HI @Shriii19 ,
Kindly review my pr.
Thank you
NSOC'26

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

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

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment May 18, 2026 5:56pm

@Shriii19 Shriii19 merged commit 048dc2b into Shriii19:master May 18, 2026
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: Add Enter Key Support for Sending Messages in Team Chat(NSOC'26)

2 participants