mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-30 17:51:34 -05:00
feat: add F key zoom-to-fit and fix middle-click conflict in PlateView
- F key triggers ZoomToFit; Ctrl+F passes through for ActionClone fill - Middle-button double-click ZoomToFit skipped when parts are selected to avoid conflicting with middle-click 90° rotation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
d1353d58e5
commit
c5a9c27160
1 file changed
+8
-1
@@ -258,7 +258,7 @@ namespace OpenNest.Controls
|
||||
{
|
||||
base.OnMouseDoubleClick(e);
|
||||
|
||||
if (e.Button == MouseButtons.Middle)
|
||||
if (e.Button == MouseButtons.Middle && SelectedParts.Count == 0)
|
||||
ZoomToFit();
|
||||
}
|
||||
|
||||
@@ -270,6 +270,13 @@ namespace OpenNest.Controls
|
||||
RemoveSelectedParts();
|
||||
break;
|
||||
|
||||
case Keys.F:
|
||||
if ((ModifierKeys & Keys.Control) == 0)
|
||||
ZoomToFit();
|
||||
else
|
||||
base.OnKeyDown(e);
|
||||
break;
|
||||
|
||||
default:
|
||||
base.OnKeyDown(e);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user