fixes for some note moving edge cases, closes #454

This commit is contained in:
zadam
2019-03-18 21:59:53 +01:00
parent 33f2aaa650
commit 1faf2c6ecd
5 changed files with 92 additions and 35 deletions

View File

@@ -20,7 +20,7 @@ const keyBindings = {
return false;
},
"ctrl+down": node => {
let afterNode = node.getNextSibling();
const afterNode = node.getNextSibling();
if (afterNode !== null) {
treeChangesService.moveAfterNode([node], afterNode);
}
@@ -33,7 +33,7 @@ const keyBindings = {
return false;
},
"ctrl+right": node => {
let toNode = node.getPrevSibling();
const toNode = node.getPrevSibling();
if (toNode !== null) {
treeChangesService.moveToNode([node], toNode);