drag and drop moves multiple items only if CTRL is pressed, active note has now bold text for more differentiation from selected note

This commit is contained in:
azivner
2019-01-23 21:13:04 +01:00
parent 4d0e46021b
commit e70af1300a
2 changed files with 19 additions and 1 deletions

View File

@@ -9,6 +9,14 @@ const dragAndDropSetup = {
return false;
}
if (!data.originalEvent.ctrlKey) {
// keep existing selection only if CTRL key is pressed
for (const selectedNode of treeService.getSelectedNodes()) {
selectedNode.setSelected(false);
selectedNode.renderTitle();
}
}
node.setSelected(true);
// this is for dragging notes into relation map