From 3f976a38218039ee093e97e70adc1e67ce0bb3c5 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 1 Jan 2018 18:11:23 -0500 Subject: [PATCH] ctrl-a selects all nodes at the current level (without children) --- public/javascripts/note_tree.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 7bf997e14..00e72acff 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -452,6 +452,13 @@ const noteTree = (function() { "alt+-": node => { collapseTree(node); }, + "ctrl+a": node => { + for (const child of node.getParent().getChildren()) { + child.setSelected(true); + } + + return false; + }, "ctrl+c": () => { contextMenu.copy(getSelectedNodes());