Roboin Blog

How to deal with the bug that prevents line breaks in X DMs (XChat) and Grok: A bug is occurring where pressing Enter sends the message

机の上に置かれたスマートフォンにメールのアイコンが表示されている写真

In the X mobile app, a bug is occurring in XChat (formerly DMs) where pressing Enter while writing a message sends the message you are typing instead of inserting a line break.

A similar bug is also occurring in the Grok app for Android.

Advertisement
Table of Contents

Details of the bug

Until now, in XChat, you could insert a line break in a message by tapping Enter (↵) on the keyboard while typing, but after a recent update, line breaks can no longer be inserted.

When you tap Enter while typing a message, the message you are typing is sent instead of a line break being inserted.

Because the message is sent as-is by an action that should insert a line break, this is an inconvenient bug that makes accidental sending more likely when trying to send a long message.

In services where Enter sends a message, it is often possible to insert a line break with Shift + Enter, but even when I pressed Shift + Enter on the English version of Gboard, it was sent without inserting a line break.

When I checked in my environment, this bug occurred in X for Android version 11.82.0-beta.0, but it did not occur in X Lite version 11.86.0-release.05.

Advertisement

I was also able to confirm that the same bug occurred in the Android version of the Grok app version 1.1.51-release.01.

Cause

At the time of writing, X has not made any official announcement about this bug.

Because the bug does not occur in X Lite, I believe there is a high possibility that there is a bug in the implementation of the text box in the X app and the Grok app.

There may be a bug in the shared input component or text input processing used by X.

Similar bugs are often seen in services that handle chat.

Advertisement

In English-speaking regions, there is no culture of using Enter in an IME (keyboard app) to confirm conversion candidates while entering text, so services often end up with a specification where Enter sends the message without considering whether text conversion is in progress.

Although it is not exactly the same as the current bug in XChat and Grok, it is a very similar issue.

Workarounds

In X for Android version 11.82.0-beta.0, the line break bug occurs, but it does not occur in the newer version 11.82.0-beta.1.

I use the beta version of the X app, so I do not know when it will be fixed in the stable version, but I do not think it will take very long.

Until the update is released, it would be a good idea to use X Lite or draft your message in a notes app and then paste it.

Advertisement

X Lite can be enabled from the sidebar in X for Android in some environments.

X Lite is a new app built by remaking X for Android from scratch, but because it is still in development, not all features have been implemented, so caution is required.

Although it takes a little extra effort, the most reliable method is to draft the message in a notes app or the post composer and then copy and paste it into XChat to send.

Conclusion

In the X mobile app, a bug is occurring in XChat where pressing Enter sends the message you are typing instead of inserting a line break.

This bug has been fixed in the latest X app, so wait for the update to be released.

Until then, I recommend either switching to X Lite, which is not affected, or pasting in text that you drafted in a notes app or elsewhere.

Share this article

Share on XShare on BlueskyShare on MisskeyShare on LINEShare on Threads

Follow us for updates

Adding us to your preferred sources on Google makes it easier to find our articles on Google. Also, be sure to follow us on X and our RSS feed.

Add as a preferred source on GoogleAdd as a preferred source on GoogleX Logo
Advertisement
著者のアイコン画像

I've been using JavaScript more than my native language since birth. I am nowhere and everywhere on the internet.

I build web apps and browser extensions in TypeScript as a web frontend programmer. I released Shadowban Scanner, a tool that detects shadowbans on X, and Restore Link Card, a tool that brings back link cards. Media outlets in Japan and abroad covered both tools. For iGEM 2023, I built the Wiki for Team Japan-United and helped the team win the Grand Prize. On my blog, I cover news about X and social media, test and troubleshoot bugs, and share frontend development insights.