Skip to content

Commit

Permalink
added functionality to select objects by ctrl clicking them
Browse files Browse the repository at this point in the history
  • Loading branch information
EIjo committed Aug 1, 2024
1 parent d3a2591 commit 78b6e7b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public void mouseClicked(MouseEvent event) {
selectedArrow = null;
}

if (!event.isShiftDown() && !((event.getModifiersEx() & shortcutMask) == shortcutMask)) {
if (!event.isShiftDown() && !event.isControlDown() && !((event.getModifiersEx() & shortcutMask) == shortcutMask)) {
for (LabeledRectangle component : cdmComponents) {
component.setSelected(false);
}
Expand Down Expand Up @@ -758,6 +758,8 @@ private void LabeledRectangleClicked(MouseEvent event, List<LabeledRectangle> co
component.toggleSelected();
}

} else if (event.isControlDown()) {
component.toggleSelected();
} else {
component.setSelected(true);
}
Expand Down

0 comments on commit 78b6e7b

Please sign in to comment.