focus and select title after creating a note

pull/255/head
zadam 2020-04-15 22:06:52 +07:00
parent 48e19d0149
commit dadcc93ae3
1 changed files with 4 additions and 0 deletions

@ -42,6 +42,8 @@ export default class MainTreeExecutors extends Component {
await ws.waitForMaxKnownSyncId();
appContext.tabManager.getActiveTabContext().setNote(note.noteId);
appContext.triggerCommand('focusAndSelectTitle');
}
async createNoteAfterCommand() {
@ -63,5 +65,7 @@ export default class MainTreeExecutors extends Component {
await ws.waitForMaxKnownSyncId();
appContext.tabManager.getActiveTabContext().setNote(note.noteId);
appContext.triggerCommand('focusAndSelectTitle');
}
}