From 25e2c747edd22ee070cf68aad991dee9fb67ba2a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 27 May 2019 16:26:21 +0200 Subject: [PATCH] focus main composer after cancel or saving edit --- src/components/views/elements/MessageEditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/elements/MessageEditor.js b/src/components/views/elements/MessageEditor.js index 9ff0244564..ed86bcb0a3 100644 --- a/src/components/views/elements/MessageEditor.js +++ b/src/components/views/elements/MessageEditor.js @@ -155,6 +155,7 @@ export default class MessageEditor extends React.Component { _cancelEdit = () => { dis.dispatch({action: "edit_event", event: null}); + dis.dispatch({action: 'focus_composer'}); } _sendEdit = () => { @@ -185,6 +186,7 @@ export default class MessageEditor extends React.Component { this.context.matrixClient.sendMessage(roomId, content); dis.dispatch({action: "edit_event", event: null}); + dis.dispatch({action: 'focus_composer'}); } _onAutoCompleteConfirm = (completion) => {