mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 09:28:45 +02:00
fix delete shortcut in note tree and protect notes recursively
This commit is contained in:
parent
3a4d32f163
commit
40247a591e
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user