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>
pull/2894/head
Mohammed Rabeeh 2020-05-09 20:47:11 +05:30 committed by GitHub
parent 06eb389b21
commit 3b653a95a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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',