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:
Bane Stojkovic
2026-03-26 19:51:56 +01:00
parent ebd66eea4f
commit cd0cb776b0
2 changed files with 8 additions and 1 deletions
@@ -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>