mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +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;
|
return false;
|
||||||
},
|
},
|
||||||
"ctrl+return": node => {
|
|
||||||
noteDetailEl.focus();
|
|
||||||
},
|
|
||||||
"return": node => {
|
"return": node => {
|
||||||
noteDetailEl.focus();
|
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
|
// 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
|
// after opening context menu, standard shortcuts don't work, but they are detected here
|
||||||
// so we essentially takeover the standard handling with our implementation.
|
// so we essentially takeover the standard handling with our implementation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user