mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fixes for some note moving edge cases, closes #454
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user