ctrl+click should never clear selection

This commit is contained in:
bancika
2011-08-07 19:07:19 +00:00
parent 943d123ca9
commit 2ebcd1fe96
4 changed files with 4 additions and 2 deletions
@@ -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
@@ -324,7 +324,7 @@
</com.diyfever.gui.update.Change>
<com.diyfever.gui.update.Change>
<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>
<changeType>NEW_FEATURE</changeType>