From e6fee75952b818e43e2bdef43f65034529f4d279 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 18 Jan 2022 09:42:01 +0100 Subject: [PATCH] remove enterkeyhint attribute as it prevents entering newlines on android on Android, by default (without the above attribute set to "send"), you press enter twice to submit a field. The first time, enter, Android seems to prevent sending logic by setting the key property on the event to "Unidentified", but does insert a newline. The second consecutive enter, it will be set to "Enter" and we'll send. Having enterkeyhint to send will disable all of that. So we're going with the default behaviour, which, IIRC, was a bit annoying on iOS as well. --- src/platform/web/ui/session/room/MessageComposer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform/web/ui/session/room/MessageComposer.js b/src/platform/web/ui/session/room/MessageComposer.js index bb175b7d..f92c4403 100644 --- a/src/platform/web/ui/session/room/MessageComposer.js +++ b/src/platform/web/ui/session/room/MessageComposer.js @@ -30,7 +30,6 @@ export class MessageComposer extends TemplateView { render(t, vm) { this._input = t.textarea({ - enterkeyhint: 'send', onKeydown: e => this._onKeyDown(e), onInput: () => { vm.setInput(this._input.value);