Add shortcut to delete newly created note quickly (#2177)

* Add shortcut to delete newly created note quickly

* Add space
This commit is contained in:
Abitofevrything
2021-09-23 23:34:51 +02:00
committed by GitHub
parent 8769fd71cb
commit 3d9260c974
3 changed files with 16 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ async function createNote(parentNotePath, options = {}) {
await activeNoteContext.setNote(`${parentNotePath}/${note.noteId}`);
if (options.focus === 'title') {
appContext.triggerEvent('focusAndSelectTitle');
appContext.triggerEvent('focusAndSelectTitle', {isNewNote: true});
}
else if (options.focus === 'content') {
appContext.triggerEvent('focusOnDetail', {ntxId: activeNoteContext.ntxId});