mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	refactoring
This commit is contained in:
		| @@ -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}); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user