mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
ctrl+click should never clear selection
This commit is contained in:
+3
-1
@@ -458,7 +458,9 @@ public class Presenter implements IPlugInPort {
|
||||
List<IDIYComponent<?>> components = findComponentsAt(scaledPoint);
|
||||
// If there's nothing under mouse cursor deselect all.
|
||||
if (components.isEmpty()) {
|
||||
newSelection.clear();
|
||||
if (!ctrlDown) {
|
||||
newSelection.clear();
|
||||
}
|
||||
} else {
|
||||
IDIYComponent<?> component = components.get(components.size() - 1);
|
||||
// If ctrl is pressed just toggle the component under mouse
|
||||
|
||||
Reference in New Issue
Block a user