mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
focus and select title after creating a note
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user