forked from mystiq/hydrogen-web
don't add line when hitting enter to send
This commit is contained in:
parent
365c8d0953
commit
fc1b9abe66
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue