mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
improved toolbar click reliability
This commit is contained in:
+3
-3
@@ -46,8 +46,8 @@ class ComponentButton extends JButton {
|
|||||||
addMouseListener(new MouseAdapter() {
|
addMouseListener(new MouseAdapter() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mousePressed(MouseEvent e) {
|
||||||
if (e.getClickCount() == 1) {
|
if (e.getButton() == MouseEvent.BUTTON1) {
|
||||||
plugInPort.setNewComponentTypeSlot(componentType);
|
plugInPort.setNewComponentTypeSlot(componentType);
|
||||||
} else {
|
} else {
|
||||||
List<IDIYComponent<?>> components = plugInPort.getCurrentProject().getComponents();
|
List<IDIYComponent<?>> components = plugInPort.getCurrentProject().getComponents();
|
||||||
@@ -60,7 +60,7 @@ class ComponentButton extends JButton {
|
|||||||
plugInPort.updateSelection(newSelection);
|
plugInPort.updateSelection(newSelection);
|
||||||
plugInPort.setNewComponentTypeSlot(null);
|
plugInPort.setNewComponentTypeSlot(null);
|
||||||
plugInPort.refresh();
|
plugInPort.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// addActionListener(new ActionListener() {
|
// addActionListener(new ActionListener() {
|
||||||
|
|||||||
@@ -625,5 +625,25 @@
|
|||||||
</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>
|
||||||
|
<org.diylc.appframework.update.Version>
|
||||||
|
<versionNumber>
|
||||||
|
<major>3</major>
|
||||||
|
<minor>9</minor>
|
||||||
|
<build>0</build>
|
||||||
|
</versionNumber>
|
||||||
|
<releaseDate>2012-08-16 20:00:00.000 CET</releaseDate>
|
||||||
|
<name></name>
|
||||||
|
<changes>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Right-click in the toolbar to select all components of the same type</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Click on a component in the toolbar sometimes doesn't register</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
|
</changes>
|
||||||
|
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
|
||||||
|
</org.diylc.appframework.update.Version>
|
||||||
</a>
|
</a>
|
||||||
</java.util.Arrays_-ArrayList>
|
</java.util.Arrays_-ArrayList>
|
||||||
Reference in New Issue
Block a user