mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-19 16:51:40 +01:00
don't add line when hitting enter to send
This commit is contained in:
parent
365c8d0953
commit
fc1b9abe66
@ -93,6 +93,8 @@ export class MessageComposer extends TemplateView {
|
||||
|
||||
_onKeyDown(event) {
|
||||
if (event.key === "Enter" && !event.shiftKey) {
|
||||
// don't insert newline into composer
|
||||
event.preventDefault();
|
||||
this._trySend();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user