1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Desktop: Fixes #3066: Fix focus after exiting GotoAnything (#3075)

* Fix focus on GotoAnything and Layout Switching

* Update app.js

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
Mohammed Rabeeh
2020-05-09 20:47:11 +05:30
committed by GitHub
parent 06eb389b21
commit 3b653a95a0

View File

@@ -303,6 +303,12 @@ class Dialog extends React.PureComponent {
folderId: item.parent_id, folderId: item.parent_id,
noteId: item.id, noteId: item.id,
}); });
this.props.dispatch({
type: 'WINDOW_COMMAND',
name: 'focusElement',
target: 'noteBody',
});
} else if (this.state.listType === BaseModel.TYPE_TAG) { } else if (this.state.listType === BaseModel.TYPE_TAG) {
this.props.dispatch({ this.props.dispatch({
type: 'TAG_SELECT', type: 'TAG_SELECT',