Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix delete shortcut in note tree and protect notes recursively
zadam40247a591e9e
diff --git a/src/public/javascripts/widgets/note_tree.js b/src/public/javascripts/widgets/note_tree.jsindex b018cb1324..ba04363bef 100644--- a/src/public/javascripts/widgets/note_tree.js+++ b/src/public/javascripts/widgets/note_tree.js@@ -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});}}diff --git a/src/services/notes.js b/src/services/notes.jsindex 383398af53..52bc83099e 100644--- a/src/services/notes.js+++ b/src/services/notes.js@@ -193,7 +193,7 @@ async function protectNoteRecursively(note, protect, includingSubTree, taskConteif (includingSubTree) {for (const child of await note.getChildNotes()) {- await protectNoteRecursively(child, protect, taskContext);+ await protectNoteRecursively(child, protect, includingSubTree, taskContext);}}}