From dadcc93ae37fc03918837630c0a5a27a69af3495 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 15 Apr 2020 22:06:52 +0200 Subject: [PATCH] focus and select title after creating a note --- src/public/app/services/main_tree_executors.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/public/app/services/main_tree_executors.js b/src/public/app/services/main_tree_executors.js index 4a2bcf4dc..61717e64f 100644 --- a/src/public/app/services/main_tree_executors.js +++ b/src/public/app/services/main_tree_executors.js @@ -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'); } } \ No newline at end of file