Monal icon indicating copy to clipboard operation
Monal copied to clipboard

[Feature]: ChatUI swift re-write: add keyboard shortcut to send message

Open foss- opened this issue 1 month ago • 4 comments

Precondition

  • [x] I understood that this template is only for feature requests and not for bug reports

Cross-checked related issues?

  • [x] I have cross-checked this overview https://github.com/monal-im/Monal/issues/322 as well as filtered for related labels https://github.com/monal-im/Monal/labels

Describe your feature

Old chat view: Enter key sends message New chat view: Enter key adds new line, no keyboard shortcut to send message

Expected: Alt + Enter adds new line, Enter sends message

Aware ChatUI rewrite is still early but wanted to file this to keep track of it, as it is fairly essential for me using a messenger app.

foss- avatar Nov 14 '25 11:11 foss-

what key is the "alt" key in "real" apple terms?

tmolitor-stud-tu avatar Nov 21 '25 02:11 tmolitor-stud-tu

Just double checked with signal, which uses shift enter to create linebreak. Same for Matrix webUI.

foss- avatar Nov 21 '25 08:11 foss-

@lissine0 does exytechat allow to change the key for sending messages?

tmolitor-stud-tu avatar Nov 25 '25 15:11 tmolitor-stud-tu

In ExyteChat, the only way to send messages is by clicking the "send" button. This is because ExyteChat has been focused on touchscreen scenarios.

So, the idea is to make a physical keyboard's enter button a shortcut for sending the message. This doesn't need to be customizable, because it doesn't affect the touchscreen case, to my knowledge.

As for inserting a line break, it should remain possible with shift + enter or alt + enter.

lissine0 avatar Nov 25 '25 16:11 lissine0