mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Ctrl + click doesn't add components to the selection in MacOS
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user