Don't eat commands that aren't ours in SCH_MOVE_TOOL.

Fixes https://gitlab.com/kicad/code/kicad/issues/5692
This commit is contained in:
Jeff Young 2020-09-18 16:44:01 +01:00
parent 90b147a914
commit d468618411
1 changed files with 26 additions and 29 deletions

View File

@ -373,9 +373,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
unselect = true;
break;
}
else if( evt->Category() == TC_COMMAND )
{
if( evt->IsAction( &ACTIONS::doDelete ) )
else if( evt->IsAction( &ACTIONS::doDelete ) )
{
// Exit on a remove operation; there is no further processing for removed items.
break;
@ -410,7 +408,6 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
}
}
}
}
//------------------------------------------------------------------------
// Handle context menu
//