mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
Right click (or two finger tap on mac) after selecting a component with a regular click opens editor dialog in addition to the context menu
This commit is contained in:
@@ -516,7 +516,10 @@ public class Presenter implements IPlugInPort {
|
||||
}
|
||||
|
||||
Point2D scaledPoint = scalePoint(point);
|
||||
if (clickCount >= 2) {
|
||||
// Only primary-button multi-clicks open the editor. On some platforms (e.g. macOS)
|
||||
// getClickCount() can be >= 2 for a secondary click that follows a primary click
|
||||
// within the multi-click interval, which must not be treated as double-click.
|
||||
if (clickCount >= 2 && button == IPlugInPort.BUTTON1) {
|
||||
editSelection();
|
||||
} else {
|
||||
if (instantiationManager.getComponentTypeSlot() != null) {
|
||||
|
||||
@@ -369,6 +369,10 @@
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Better error handling for AI tools</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>Right click (or two finger tap on mac) after selecting a component with a regular click opens editor dialog in addition to the context menu</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
</changes>
|
||||
<url>https://github.com/bancika/diy-layout-creator/releases</url>
|
||||
</org.diylc.appframework.update.Version>
|
||||
|
||||
Reference in New Issue
Block a user