mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 17:38:47 +02:00
added backspace to move to parent node
This commit is contained in:
parent
b6d617aefa
commit
01ede22504
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user