Skip to content

Build your personal knowledge base with Trilium Notes

added backspace to move to parent node

azivner01ede2250472
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index 6448a4398a..47b126f243 100644
--- a/public/javascripts/note_tree.js
+++ b/public/javascripts/note_tree.js
@@ -490,12 +490,14 @@ const noteTree = (function() {
return false;
},
- "ctrl+return": node => {
- noteDetailEl.focus();
- },
"return": node => {
noteDetailEl.focus();
},
+ "backspace": node => {
+ if (!isTopLevelNode(node)) {
+ node.getParent().setActive().then(() => clearSelectedNodes());
+ }
+ },
// code below shouldn't be necessary normally, however there's some problem with interaction with context menu plugin
// after opening context menu, standard shortcuts don't work, but they are detected here
// so we essentially takeover the standard handling with our implementation.