redesign of drag & drop, separation of active, focused and active notes in the tree, fixes #565

This commit is contained in:
zadam
2019-06-10 21:47:08 +02:00
parent 8ab081a3fd
commit 27659805f6
6 changed files with 48 additions and 44 deletions

View File

@@ -43,6 +43,14 @@ const keyBindings = {
"shift+up": () => {
const node = treeService.getFocusedNode();
if (!node) {
return;
}
if (node.isActive()) {
node.setSelected(true);
}
node.navigate($.ui.keyCode.UP, false).then(() => {
const currentNode = treeService.getFocusedNode();
@@ -58,6 +66,14 @@ const keyBindings = {
"shift+down": () => {
const node = treeService.getFocusedNode();
if (!node) {
return;
}
if (node.isActive()) {
node.setSelected(true);
}
node.navigate($.ui.keyCode.DOWN, false).then(() => {
const currentNode = treeService.getFocusedNode();