mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
Add shortcut to delete newly created note quickly (#2177)
* Add shortcut to delete newly created note quickly * Add space
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user