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:
parent
58fe89a050
commit
8e2fb1bdb9
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue