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:
Binary file not shown.
Binary file not shown.
+2
@@ -458,7 +458,9 @@ public class Presenter implements IPlugInPort {
|
|||||||
List<IDIYComponent<?>> components = findComponentsAt(scaledPoint);
|
List<IDIYComponent<?>> components = findComponentsAt(scaledPoint);
|
||||||
// If there's nothing under mouse cursor deselect all.
|
// If there's nothing under mouse cursor deselect all.
|
||||||
if (components.isEmpty()) {
|
if (components.isEmpty()) {
|
||||||
|
if (!ctrlDown) {
|
||||||
newSelection.clear();
|
newSelection.clear();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
IDIYComponent<?> component = components.get(components.size() - 1);
|
IDIYComponent<?> component = components.get(components.size() - 1);
|
||||||
// If ctrl is pressed just toggle the component under mouse
|
// If ctrl is pressed just toggle the component under mouse
|
||||||
|
|||||||
@@ -324,7 +324,7 @@
|
|||||||
</com.diyfever.gui.update.Change>
|
</com.diyfever.gui.update.Change>
|
||||||
<com.diyfever.gui.update.Change>
|
<com.diyfever.gui.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description></description>
|
<description>Ctrl+click should not cleanup selection when clicked on the canvas</description>
|
||||||
</com.diyfever.gui.update.Change>
|
</com.diyfever.gui.update.Change>
|
||||||
<com.diyfever.gui.update.Change>
|
<com.diyfever.gui.update.Change>
|
||||||
<changeType>NEW_FEATURE</changeType>
|
<changeType>NEW_FEATURE</changeType>
|
||||||
|
|||||||
Reference in New Issue
Block a user