Ctrl + right click on component type in toolbox appends components of that type to selection

This commit is contained in:
bancika
2012-10-09 09:14:55 +00:00
parent b1a1611a3a
commit 5ea4ed44a4
2 changed files with 8 additions and 0 deletions
@@ -79,6 +79,10 @@ class ComponentButtonFactory {
newSelection.add(component); newSelection.add(component);
} }
} }
// Ctrl appends selection
if (e.isControlDown()) {
newSelection.addAll(plugInPort.getSelectedComponents());
}
plugInPort.updateSelection(newSelection); plugInPort.updateSelection(newSelection);
plugInPort.setNewComponentTypeSlot(null, null); plugInPort.setNewComponentTypeSlot(null, null);
plugInPort.refresh(); plugInPort.refresh();
@@ -1090,6 +1090,10 @@
<changeType>IMPROVEMENT</changeType> <changeType>IMPROVEMENT</changeType>
<description>Clearer standing component (mainly diode) reversion</description> <description>Clearer standing component (mainly diode) reversion</description>
</org.diylc.appframework.update.Change> </org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Ctrl + right click on component type in toolbox appends components of that type to selection</description>
</org.diylc.appframework.update.Change>
</changes> </changes>
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url> <url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
</org.diylc.appframework.update.Version> </org.diylc.appframework.update.Version>