[Feature]: ChatUI swift re-write: add keyboard shortcut to send message
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.
what key is the "alt" key in "real" apple terms?
Just double checked with signal, which uses shift enter to create linebreak. Same for Matrix webUI.
@lissine0 does exytechat allow to change the key for sending messages?
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.