Skip to content

Build your personal knowledge base with Trilium Notes

fix shift-up selection, fixes #146

azivneraf4ea667426b
diff --git a/src/public/javascripts/services/tree_keybindings.js b/src/public/javascripts/services/tree_keybindings.js
index e811e65cb4..395b94742a 100644
--- a/src/public/javascripts/services/tree_keybindings.js
+++ b/src/public/javascripts/services/tree_keybindings.js
@@ -42,7 +42,7 @@ const keyBindings = {
},
"shift+up": node => {
node.navigate($.ui.keyCode.UP, true).then(() => {
- const currentNode = getCurrentNode();
+ const currentNode = treeService.getCurrentNode();
if (currentNode.isSelected()) {
node.setSelected(false);