Skip to content

feat: shift+enter sends - #178

Merged
tiann merged 2 commits into
devfrom
hapi-bot/175-4791997
Feb 14, 2026
Merged

feat: shift+enter sends#178
tiann merged 2 commits into
devfrom
hapi-bot/175-4791997

Conversation

@github-actions

Copy link
Copy Markdown

Summary

  • Make Enter insert newline and Shift+Enter send in the web composer.
  • Trigger send directly on Shift+Enter keydown.

Context

Requested by @tiann in comment


HAPI Bot

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Feb 13, 2026

Copy link
Copy Markdown

Deploying hapi with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4ccffda
Status: ✅  Deploy successful!
Preview URL: https://c4f2d8eb.hapi-bqd.pages.dev
Branch Preview URL: https://hapi-bot-175-4791997.hapi-bqd.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a keyboard shortcut change for the web composer, making Enter insert newlines and Shift+Enter send messages. This was requested to improve the iPad keyboard experience.

Changes:

  • Enter key now inserts a newline in the composer (by setting submitOnEnter={false})
  • Shift+Enter now sends the message (new keyboard handler)
  • The handler respects IME composition and only sends when messages can be sent

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@npp1993

npp1993 commented Feb 13, 2026

Copy link
Copy Markdown

would be nice if this can be inverted in settings; i.e.
enter sends
shift+enter inserts newline

@tiann
tiann merged commit e3dbdfb into dev Feb 14, 2026
7 checks passed
@tiann
tiann deleted the hapi-bot/175-4791997 branch February 14, 2026 07:16
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.

4 participants