Respond to <esc> from selection tool.
Fixes: lp:1827917 * https://bugs.launchpad.net/kicad/+bug/1827917
This commit is contained in:
parent
cd2bd23c37
commit
f1a38a6d41
|
@ -374,12 +374,15 @@ int SCH_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
|
||||
}
|
||||
|
||||
else if( evt->IsCancel() || evt->Action() == TA_UNDO_REDO_PRE )
|
||||
else if( evt->IsAction( &ACTIONS::cancelInteractive ) || evt->IsCancel() )
|
||||
{
|
||||
clearSelection();
|
||||
m_toolMgr->RunAction( SCH_ACTIONS::clearHighlight, true );
|
||||
}
|
||||
|
||||
if( evt->IsCancel() && dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
|
||||
m_toolMgr->RunAction( SCH_ACTIONS::clearHighlight, true );
|
||||
else if( evt->Action() == TA_UNDO_REDO_PRE )
|
||||
{
|
||||
clearSelection();
|
||||
}
|
||||
|
||||
else if( evt->Action() == TA_CONTEXT_MENU_CLOSED )
|
||||
|
|
Loading…
Reference in New Issue