Side note: I guess on MacOS Cmd+Enter should work as well for submitting the message if Shift+Enter is configured.
Shift+Enter is standard for adding a newline without submitting a message. Itâs probably going to confuse a lot of people if Shift+Enter is used to send messages, because it will train the wrong muscle memory. I always reach for shift+enter when I want to be sure that a program is not going to send the message.
Ctrl/Command+Enter is standard for submitting things (chat messages, emails, etc.). Try both keybindings in Discord, Slack, Gmail, Google Chat, Thunderbird, and most other programs.
Edit: Command+Enter works for Discourse posts too.
There is no standard, thatâs why Iâm asking to make a setting and be done with it. If I choose Enter to make a newline, I expect anything else to some other action such as Submit.
It is a terrible user experience if Shift+Enter makes a newline while Cmd+Enter submits â these two are very easy to confuse between each other, and we are back to unreliable behaviour which is definitely not the âleast surprisingâ.
It must be between A) an Enter alone, and B) an Enter pressed with a modifier key. This is the only way to distinct between a new line and a submission intention, and that will make user using the editor smooth and intuitive.
Grouping âEnterâ together with âShift-Enterâ to produce a newline, and then have âCmd+Enterâ to submit â is a terrible idea imo.
Yes itâs what is noted in the pull request I linked above.
Thatâs an option, and it will default to enter to send, and shift+enter to linebreak. So I donât see how that would confuse people, given they would have to CHOOSE this behavior.
I think I will most likely merge the PR as it is now given default behavior is not changing for everyone, and you can all make me feedback as users of this option.
The default sounds good to me, but I wouldnât make sending on shift+enter an option, because itâs like giving the option to use the ESC to submit things instead of preventing submitting, which will train muscle memory the wrong way in some users.
Itâs like ESC to exit or ctrl+k to search â not an official standard, but itâs been done that way for so long by so many programs, thatâs what users expect. Like you mentioned above: â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â.â
If people train muscle memory that shift+enter sends messages, they are going to get unpleasant surprises when they find out what happens in other programs.
I donât use the two programs you mentioned, but Slack, Google Chat, Skype, Apple Messages, and most others use enter to send and shift+enter to create new lines. When enter doesnât submit (Gmail, Discourse posts, etc.), ctrl/command+enter submits.
An option to turn off submitting for enter makes sense, but I think using shift+enter to submit is going to cause problems for people who choose that without realizing that itâs going to create another muscle memory problem.
I just merged this, which copies the behavior of telegram:
Let me know how it goes for you.