mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
right click improvement
This commit is contained in:
+2
-2
@@ -58,7 +58,7 @@ public class Presenter implements IPlugInPort {
|
|||||||
private static final Logger LOG = Logger.getLogger(Presenter.class);
|
private static final Logger LOG = Logger.getLogger(Presenter.class);
|
||||||
|
|
||||||
public static final VersionNumber CURRENT_VERSION = new VersionNumber(3,
|
public static final VersionNumber CURRENT_VERSION = new VersionNumber(3,
|
||||||
15, 0);
|
16, 0);
|
||||||
public static final String DEFAULTS_KEY_PREFIX = "default.";
|
public static final String DEFAULTS_KEY_PREFIX = "default.";
|
||||||
|
|
||||||
public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections
|
public static final List<IDIYComponent<?>> EMPTY_SELECTION = Collections
|
||||||
@@ -405,7 +405,7 @@ public class Presenter implements IPlugInPort {
|
|||||||
} else {
|
} else {
|
||||||
if (instantiationManager.getComponentTypeSlot() != null) {
|
if (instantiationManager.getComponentTypeSlot() != null) {
|
||||||
// Try to rotate the component on right click while creating.
|
// Try to rotate the component on right click while creating.
|
||||||
if (button == IPlugInPort.BUTTON3) {
|
if (button != IPlugInPort.BUTTON1) {
|
||||||
instantiationManager.tryToRotateComponentSlot();
|
instantiationManager.tryToRotateComponentSlot();
|
||||||
messageDispatcher.dispatchMessage(EventType.REPAINT);
|
messageDispatcher.dispatchMessage(EventType.REPAINT);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user