Skip to content

fix(happy-app): don't intercept Enter on mobile web touch devices#854

Open
EricSeastrand wants to merge 1 commit intoslopus:mainfrom
EricSeastrand:fix/mobile-web-enter-key
Open

fix(happy-app): don't intercept Enter on mobile web touch devices#854
EricSeastrand wants to merge 1 commit intoslopus:mainfrom
EricSeastrand:fix/mobile-web-enter-key

Conversation

@EricSeastrand
Copy link

Summary

  • On mobile web, the on-screen keyboard has no Shift key, so Enter-to-send made it impossible to insert newlines in messages
  • Enter now falls through to default textarea behavior on touch devices — users send via the send button instead
  • Desktop web behavior is unchanged (Enter still sends, Shift+Enter for newline)

Test plan

  • On mobile web (phone), pressing Enter in the input should insert a newline
  • On mobile web, tapping the send button should send the message
  • On desktop web, Enter should still send and Shift+Enter should still insert a newline

🤖 Generated with Claude Code
via Happy

On mobile web (phones), the on-screen keyboard has no Shift key, so
Enter-to-send made it impossible to insert newlines. Now Enter falls
through to default textarea behavior on touch devices, and users send
via the send button instead. Desktop web behavior is unchanged.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
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.

1 participant