Enter to newline, Shift+Enter to submit message in chat

We love writing multi-paragraph messages. However, it is very annoying to press Shift+Enter for a line break, and easy to press Enter by mistake and submit the message.

Please add a configuration to switch the two.

4 Likes

Iā€™ll use bold now: +1 for this

And my reason for this is:

  • do you know how annoying is when you do a typo, trying to fix it and your finger hits slightly off to enterā€¦
  • small screens, aka. mobiles, donā€™t send when hitting enter (and that is good, please, please donā€™t fix it)

I do this reasonably often as well. :raised_hand:

1 Like

This would also help with your previous feature request.
So letā€™s add tablets to the use cases.

I forgot totally that request :man_facepalming: :woozy_face:

Mostly because it got close to zero support (and I see why, using tablets is so rare)

Dear developers, Iā€™m still struggling and occasionally mistakenly sending half-writeen messages by pressing Enter.

This seems to be a pretty standard setting in all popular chats from Telegram to Element ā€“ i.e. to allow ā€œCmd+Enter to send, Enter for newlineā€.

Could you please add such a setting to the user profile?

I disagree.

Shift-enter appears to be a standard for new lines without submission.

Enter is appropriate for submission.

Look at Discord as an example, or Signal, or ChatGPT.

Can you identify chat platforms where it is the opposite?

3 Likes

Disagree with what ā€” making it configurable as Telegram and many others did?

Iā€™m an intense Chat user. When I switch between topics and chats hundred times a day, I prefer my Enter to equally NOT send a message ā€” in both the Composer and Chat message input. It is an extra cognitive load to switch between what I need to press to get a newline, and itā€™s easy to get it wrong time to time, this is vey annoying. So Iā€™d just configure it to use Enter for newlines, and you could enjoy submitting by Enter.

2 Likes

I donā€™t have any platform in use where enter sends a message. And that premature outgoing happens to me every day. Mostly because I miss backspace hitting enter instead. Discourse is the only one nowadays.

1 Like

Iā€™d be fine with a setting. :+1:

(but imho, by default Enter makes sense to submit short-form chat, whilst for long-form writing in a Post, you want to make new lines rather than submit. So to me the current distinction makes sense.)

4 Likes

We are discussing this internally :+1:

3 Likes

I will be working on a simple version of this soon, we might refine more in the future.

2 Likes

WIll try to get this merged in next two weeks:

6 Likes

Will the preference also affect the behavior on mobile devices?
Right now, when I am chatting with my phone, I can use the enter key to add a new line. Will that still be possible when the PR is merged? Or do I need to change my preference to continue using the chat as I did before?

My goal is to not interfere with mobile, I have planned to check this today.

1 Like

So the main issue of mobiles still stays. Not cool.

Ok you talk of this one Sending chat message using icon, not enter, on tablets ?

Will look next week. Im tempted to say we need a different setting. @lindsey could you look at this other topic and give me your opinion please?

I would really like to avoid an additional setting. Can the same setting apply to both desktop + tablets, but not other mobile devices?

Similar than where outbound links will open or how automatic lists work :smirk: First one is a bit strange than user should do that choise in theirs browser and second one was must thing to do, because Discourse kind of changed familiar action :wink:

And shift-enter is from similar genre. All because big screen users with dev background hate using a mouse ā€” yeah, that is from me, but it looks like that :smirk: But the majority of users, who use a moise or even tap a screen, do every day line breaks with enter and sending via an icon.

Is it good UX? Ergonomically not, but they have used to use it ā€” and that is the reason why even here the hamburger is where it is.

I donā€™t what my point is, but there is two reasonable routes:

  • follow main stream
  • understand that using desktops, laptops, tablets and phones are very different environment, but still users use the most familiar way. Then the only way offer what they want (different thing than what they need, sure) is let a user choose: and that needs settings.

But every settings donā€™t be visible all the time, though. My router offers three different level for that :man_shrugging:

But sending with pure enter is pain in the ass. Even on desktop, if line break is behind shift-enter and fast fingers misses that shift, in space or time. Thatā€™s why opposite is requested, I assume.

I tried the change on my tablet this morning, and depending on what I chose in my preferences, Enter worked for a new line or submitting the message. So, for me, selecting Shift+Enter for sending in my preferences fixes the problem on my tablet and does not break anything on my laptop. I can use Shift+Enter for sending there.
I donā€™t think I need an option to choose that per device like itā€™s possible for themes, colors, and font size.