Handle rotation while moving from move tool.
This keeps us from getting CancelInteractive events in the move tool when the EditTool runs to do the rotate. Fixes https://gitlab.com/kicad/code/kicad/issues/12004
This commit is contained in:
parent
b80fd5329d
commit
bdffbbd43b
|
@ -793,6 +793,14 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
chain_commands = true;
|
||||
break;
|
||||
}
|
||||
else if( evt->IsAction( &EE_ACTIONS::rotateCW ) )
|
||||
{
|
||||
m_toolMgr->RunAction( EE_ACTIONS::rotateCW, true );
|
||||
}
|
||||
else if( evt->IsAction( &EE_ACTIONS::rotateCCW ) )
|
||||
{
|
||||
m_toolMgr->RunAction( EE_ACTIONS::rotateCCW, true );
|
||||
}
|
||||
else if( evt->Action() == TA_CHOICE_MENU_CHOICE )
|
||||
{
|
||||
if( evt->GetCommandId().get() >= ID_POPUP_SCH_SELECT_UNIT_CMP
|
||||
|
|
Loading…
Reference in New Issue