nioc / xmpp-web

Lightweight web chat client for XMPP server
GNU Affero General Public License v3.0
142 stars 20 forks source link

Hitting "Enter" in message box should send, not add new line #54

Closed binarydad closed 2 years ago

binarydad commented 2 years ago

I noticed this with the older version as well. When typing and then hitting "Enter", it adds a new line instead of sending. Not sure if this is a bug or intentional, but I feel this should send the message. Thanks!

nioc commented 2 years ago

To send message, you can use Control+Enter. I think it is much easier to format paragraphs with Enter key.

nioc commented 2 years ago

You're not the first telling me this. May be I will set it configurable with a new hasSendingEnterKey:

binarydad commented 2 years ago

I think a setting is fine. Of the messengers I've used, simply hitting Enter sends the message, and I'm used to using Shift + Enter to make paragraphs.

nioc commented 2 years ago

@binarydad with 0.9.2, you can add this env to your docker command:

-e APP_HAS_SENDING_ENTER_KEY=1