From 952af5cf0e03636872205b394581bd013e9a6fc6 Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Mon, 7 Sep 2020 20:59:03 -0700 Subject: [PATCH] chat: added ability to blur chat editor --- .../src/views/apps/chat/components/lib/chat-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/interface/src/views/apps/chat/components/lib/chat-editor.js b/pkg/interface/src/views/apps/chat/components/lib/chat-editor.js index be7dd64be..fbae6c174 100644 --- a/pkg/interface/src/views/apps/chat/components/lib/chat-editor.js +++ b/pkg/interface/src/views/apps/chat/components/lib/chat-editor.js @@ -116,6 +116,9 @@ export default class ChatEditor extends Component { extraKeys: { 'Enter': () => { this.submit(); + }, + 'Esc': () => { + this.editor?.getInputField().blur(); } } };