Repository navigation
Conversation
The composer's text field is laid out on the vertical axis, so the return key inserts a new line and never fires `onSubmit`. Labelling it `.send` drew a blue up arrow identical to the send button beside the field, so the key promised a send it could not perform. Use the standard return key instead, and drop the `onSubmit` handler that a vertical field never calls. The send button remains the only way to send.
Collaborator
Generated by 🚫 Danger |
…y-adds-a-new-line
crazytonyli
approved these changes
Nov 24, 2026
adalpari
deleted the
cmm-2872-support-chat-the-keyboards-send-key-adds-a-new-line
branch
November 25, 2026 08:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL; DR
This PR changes the appearance of the "enter" key on the keyboard. Previously, the key looked like a "send" one but the action is "add a new line".
Description
Fixes CMM-2872.
In the support chat the keyboard's return key was a blue up arrow, identical to the send button next to the text field. Tapping it added a new line instead of sending, so you had to find the separate send button.
The cause is that the composer's text field is laid out on the vertical axis. A vertical-axis
TextFieldtreats return as a new line and never firesonSubmit, so the existing.onSubmit(sendIfPossible)never ran — the.submitLabel(.send)was decoration over a key that could not send.This takes the second option from the issue: keep return as a new line, and give it the standard return key so it no longer looks like send. Entering a new line with return is what most chat apps do, so the behaviour is unchanged and only the key's appearance is corrected. The dead
onSubmitgoes with it; the send button stays the only way to send.What I ran
xcodebuild -workspace WordPress.xcworkspace -scheme WordPress -destination 'platform=iOS Simulator,name=iPhone 18 Pro' build→** BUILD SUCCEEDED **No tests apply: the change is a keyboard-label modifier on a SwiftUI view with no logic, and
UnifiedSupportComposerhas no test coverage.Testing instructions
🤖 Generated with Claude Code