You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Android: send message with a hardware keyboard (Enter or Ctrl+Enter) #21685
On an Android tablet with a physical keyboard, Enter inserts a newline in the composer and there is no keyboard shortcut to send. Combined with the send button being hidden while the composer is expanded on tablets with a taskbar (#21684), sending requires leaving the keyboard to tap the screen twice.
Proposal
When a hardware keyboard is attached, support a send shortcut: Enter to send and Shift+Enter for a newline (matching desktop's sendShortcut: enter), or at least Ctrl+Enter. Ideally reuse the desktop "send shortcut" setting.
Environment
Lenovo Idea Tab Plus (system version 17.5.10.375), physical keyboard, T3 Android app 2.0.0.
Thanks for the report. The mobile app already has a Return key "Send" setting, but on Android it currently does nothing for hardware keyboards. Open PR #15030 makes the Android composer honor that setting, so a hardware Return sends the same way it does on iPad (with Ctrl in place of Command) while the on-screen keyboard still inserts newlines. That change has not been tested on a real Android tablet yet.
Julius took over #15030, which covers this, so I've stopped work on #21687. Here's what our device testing found, in case it helps #15030's physical-keyboard QA:
Tested #21687 (head deb79c3) as a local release build on a OnePlus Pad 3 (OPD2415, OxygenOS 16 / Android 16, 16.0.10.600), Return key setting "Send message":
OnePlus Pad 3 keyboard: Return sends, Shift+Return inserts a new line.
Samers foldable Bluetooth keyboard with trackpad: Return sends, Shift+Return inserts a new line, Ctrl+Return sends.
On-screen keyboard: Return still inserts a new line.
No double sends. The keyboard app's floating toolbar stays up while typing on the hardware keyboard, and it didn't interfere.
Activity
juliusmarminge commentedon Oct 19, 2026
Note
Grok responding on behalf of Julius.
Thanks for the report. The mobile app already has a Return key "Send" setting, but on Android it currently does nothing for hardware keyboards. Open PR #15030 makes the Android composer honor that setting, so a hardware Return sends the same way it does on iPad (with Ctrl in place of Command) while the on-screen keyboard still inserts newlines. That change has not been tested on a real Android tablet yet.
shivamhwp commentedon Oct 25, 2026
Julius took over #15030, which covers this, so I've stopped work on #21687. Here's what our device testing found, in case it helps #15030's physical-keyboard QA:
getComposingSpanStart(text) >= 0. On a POCO F4 (Android 14) with a hardware keyboard, the on-screen keyboard keeps a composing region over the last word even while you type on the hardware keyboard. With that guard in place, Ctrl+Return did nothing. fix(mobile): Android sends with Return on a hardware keyboard #21687 dropped the guard (5ae895c); after that, Return and Ctrl+Return sent as expected.FLAG_SOFT_KEYBOARD. Device ID 0 maps to the built-in keyboard, which on these phones is the fingerprint sensor. fix(mobile): Android sends with Return on a hardware keyboard #21687 sends only when the event's device is non-virtual andKEYBOARD_TYPE_ALPHABETIC. fix(mobile): restore lost iOS race fixes and Android keyboard parity #15030'ssendKeyEventwrapper handles the same case from the IME side.orlando-ts commentedon Nov 4, 2026
Tested #21687 (head deb79c3) as a local release build on a OnePlus Pad 3 (OPD2415, OxygenOS 16 / Android 16, 16.0.10.600), Return key setting "Send message":
No double sends. The keyboard app's floating toolbar stays up while typing on the hardware keyboard, and it didn't interfere.
fix(mobile): Android sends with Return on a hardware keyboard
fix(mobile): Android sends with Return on a hardware keyboard
juliusmarminge commentedon Nov 9, 2026
Thanks for the report! #21687 adds Android hardware-keyboard Return and Ctrl+Return sending, merged as c73b38b.