From 31a9da09b225e5a1c7faffbd756e41c021e7fa07 Mon Sep 17 00:00:00 2001 From: Tawfiek Date: Fri, 30 Apr 2021 04:15:11 +0200 Subject: [PATCH 1/2] UI: add enterkeyhint end into the MessageComposer --- src/platform/web/ui/session/room/MessageComposer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/web/ui/session/room/MessageComposer.js b/src/platform/web/ui/session/room/MessageComposer.js index 8da69478..95f48747 100644 --- a/src/platform/web/ui/session/room/MessageComposer.js +++ b/src/platform/web/ui/session/room/MessageComposer.js @@ -28,6 +28,7 @@ export class MessageComposer extends TemplateView { render(t, vm) { this._input = t.input({ placeholder: vm.isEncrypted ? "Send an encrypted messageā€¦" : "Send a messageā€¦", + enterkeyhint: 'send', onKeydown: e => this._onKeyDown(e), onInput: () => vm.setInput(this._input.value), }); From 1104317a768b712357fc3252f40afe188eb6fb8c Mon Sep 17 00:00:00 2001 From: Tawfiek Date: Fri, 30 Apr 2021 04:19:58 +0200 Subject: [PATCH 2/2] UI: add enterkeyhint into filter in LerftPanelView --- src/platform/web/ui/session/leftpanel/LeftPanelView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/web/ui/session/leftpanel/LeftPanelView.js b/src/platform/web/ui/session/leftpanel/LeftPanelView.js index 5b56fa4a..8757ad42 100644 --- a/src/platform/web/ui/session/leftpanel/LeftPanelView.js +++ b/src/platform/web/ui/session/leftpanel/LeftPanelView.js @@ -32,6 +32,7 @@ class FilterField extends TemplateView { placeholder: options?.label, "aria-label": options?.label, autocomplete: options?.autocomplete, + enterkeyhint: 'search', name: options?.name, onInput: event => options.set(event.target.value), onKeydown: event => {