Repository navigation
feat(composer): Enter is a new line on a phone - #672
Merged
Merged
Conversation
On a touch-only screen (coarse pointer, no fine pointer) Enter in the composer makes a new line and the send button sends. A computer, a touch laptop or a tablet with a trackpad keeps Enter to send.
viktormarinho
enabled auto-merge (squash)
November 30, 2026 14:37
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.
What
On a phone (a touch-only screen: coarse pointer and no fine pointer), Enter in the composer makes a new line and the send button sends. On a computer, a touch laptop or a tablet with a trackpad, Enter still sends and Shift+Enter is a new line.
Why
A phone keyboard has no Shift+Enter, so there was no way to write a message with more than one line. Follow-up asked in the room (#7079), approved (#7080).
Checks run
bun test scripts/composer.test.ts -t "Gimenes #7079"(new test): passbun run check:ui,test:ui,check:guidelines,format:check: passbun run screens -- --enter(new flag): pass. At 390 px Enter makes a new line and the send button sends; at 1440 px Enter sends.Router bench
not touched
Deliberate decisions
Screens
Summary by cubic
Makes Enter in the composer insert a new line on touch-only screens (phones), whose keyboards have no Shift+Enter, so multi-line messages were previously impossible. On computers, touch laptops, and tablets with a trackpad, Enter still sends the message and Shift+Enter stays the new line.
--enterflag to the screen-capture script and a unit test covering both pointer profiles.Written for commit f4e2a8a. Summary will update on new commits.