Ctrl + click doesn't add components to the selection in MacOS

This commit is contained in:
Branislav Stojkovic
2018-12-25 23:40:05 +01:00
parent e9615d4d64
commit ce0ac2460c
7 changed files with 197 additions and 203 deletions
@@ -617,9 +617,9 @@ public class Presenter implements IPlugInPort {
IDIYComponent<?> topComponent = components.get(0);
// If ctrl is pressed just toggle the component under mouse
// cursor.
if (!Utils.isMac() && ctrlDown) {
if (ctrlDown) {
if (newSelection.contains(topComponent)) {
newSelection.removeAll(findAllGroupedComponents(topComponent));
newSelection.removeAll(findAllGroupedComponents(topComponent));
} else {
newSelection.addAll(findAllGroupedComponents(topComponent));
}