Don't deselect on activate event; only cancel events.

Fixes: lp:1833268
* https://bugs.launchpad.net/kicad/+bug/1833268
This commit is contained in:
Jeff Young 2019-06-19 00:18:57 +01:00
parent b8dfc1f26a
commit c8f254ff92
1 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,8 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent )
commit.Revert(); commit.Revert();
// ESC should clear selection along with edit points // ESC should clear selection along with edit points
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); if( TOOL_EVT_UTILS::IsCancelInteractive( *evt ) )
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
break; break;
} }