Treat Cut like a Delete while in a Move.

Also fixes problem where second action wasn't getting executed because
the event was getting eaten.

Fixes https://gitlab.com/kicad/code/kicad/issues/8072
This commit is contained in:
Jeff Young 2021-05-29 22:09:25 +01:00
parent 58fe89a050
commit 8e2fb1bdb9
1 changed files with 3 additions and 1 deletions

View File

@ -1018,12 +1018,14 @@ int EDIT_TOOL::doMoveSelection( TOOL_EVENT aEvent, bool aPickReference )
}
// Dispatch TOOL_ACTIONs
else if( evt->IsAction( &ACTIONS::doDelete ) )
else if( evt->IsAction( &ACTIONS::doDelete ) || evt->IsAction( &ACTIONS::cut ) )
{
evt->SetPassEvent();
break; // finish -- there is no further processing for removed items
}
else if( evt->IsAction( &ACTIONS::duplicate ) )
{
evt->SetPassEvent();
break; // finish -- Duplicate tool will start a new Move with the dup'ed items
}
else if( evt->IsAction( &PCB_ACTIONS::moveExact ) )