feat: add Delete key to remove source parts during ActionClone

Enables a "move" workflow: clone parts to a new position, then
press Delete to remove the originals. Previously Delete just
cancelled the clone action.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 19:21:23 -04:00
parent ef15421915
commit 5949c3ca1f
2 changed files with 14 additions and 5 deletions
+2 -5
View File
@@ -386,11 +386,7 @@ namespace OpenNest.Controls
switch (e.KeyCode)
{
case Keys.Delete:
if (currentAction is ActionClone)
{
SetAction(typeof(ActionSelect));
}
else if (selectedCutOff != null)
if (selectedCutOff != null)
{
Plate.CutOffs.Remove(selectedCutOff);
selectedCutOff = null;
@@ -853,6 +849,7 @@ namespace OpenNest.Controls
Invalidate();
}
private void redrawTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
Invalidate();