mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix delete shortcut in note tree and protect notes recursively
This commit is contained in:
		| @@ -652,7 +652,7 @@ export default class NoteTreeWidget extends TabAwareWidget { | ||||
|          | ||||
|         for (const action of actions) { | ||||
|             for (const shortcut of action.effectiveShortcuts) { | ||||
|                 hotKeyMap[shortcut] = node => this.triggerCommand(action.actionName, {node});  | ||||
|                 hotKeyMap[utils.normalizeShortcut(shortcut)] = node => this.triggerCommand(action.actionName, {node}); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -193,7 +193,7 @@ async function protectNoteRecursively(note, protect, includingSubTree, taskConte | ||||
|  | ||||
|     if (includingSubTree) { | ||||
|         for (const child of await note.getChildNotes()) { | ||||
|             await protectNoteRecursively(child, protect, taskContext); | ||||
|             await protectNoteRecursively(child, protect, includingSubTree, taskContext); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user