added backspace to move to parent node

This commit is contained in:
azivner 2018-01-03 22:49:53 -05:00
parent b6d617aefa
commit 01ede22504

View File

@ -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.