refactoring

This commit is contained in:
zadam
2021-01-29 22:44:59 +01:00
parent 0a10764ed4
commit 6081c3540e
5 changed files with 50 additions and 39 deletions

View File

@@ -56,10 +56,10 @@ async function createNote(parentNoteId, options = {}) {
await activeTabContext.setNote(note.noteId);
if (options.focus === 'title') {
appContext.triggerCommand('focusAndSelectTitle');
appContext.triggerEvent('focusAndSelectTitle');
}
else if (options.focus === 'content') {
appContext.triggerCommand('focusOnDetail', {tabId: activeTabContext.tabId});
appContext.triggerEvent('focusOnDetail', {tabId: activeTabContext.tabId});
}
}