From 3b653a95a0f5ed81fad16b3ce9d0f183e24546d9 Mon Sep 17 00:00:00 2001 From: Mohammed Rabeeh Date: Sat, 9 May 2020 20:47:11 +0530 Subject: [PATCH] Desktop: Fixes #3066: Fix focus after exiting GotoAnything (#3075) * Fix focus on GotoAnything and Layout Switching * Update app.js Co-authored-by: Laurent Cozic --- ElectronClient/plugins/GotoAnything.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ElectronClient/plugins/GotoAnything.jsx b/ElectronClient/plugins/GotoAnything.jsx index dbb37456f0..d73776004f 100644 --- a/ElectronClient/plugins/GotoAnything.jsx +++ b/ElectronClient/plugins/GotoAnything.jsx @@ -303,6 +303,12 @@ class Dialog extends React.PureComponent { folderId: item.parent_id, noteId: item.id, }); + + this.props.dispatch({ + type: 'WINDOW_COMMAND', + name: 'focusElement', + target: 'noteBody', + }); } else if (this.state.listType === BaseModel.TYPE_TAG) { this.props.dispatch({ type: 'TAG_SELECT',