Schematic: allowing ctrl/shift-clicking point editor points

This commit is contained in:
Mike Williams 2022-12-08 12:37:15 -05:00
parent 2214e853c1
commit 4b02e5efb4
1 changed files with 2 additions and 1 deletions

View File

@ -352,8 +352,9 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
if( evt->IsMouseDown( BUT_LEFT ) ) if( evt->IsMouseDown( BUT_LEFT ) )
{ {
// Avoid triggering when running under other tools // Avoid triggering when running under other tools
// Distinguish point editor from selection modification by checking modifiers
if( m_frame->ToolStackIsEmpty() && m_toolMgr->GetTool<EE_POINT_EDITOR>() if( m_frame->ToolStackIsEmpty() && m_toolMgr->GetTool<EE_POINT_EDITOR>()
&& !m_toolMgr->GetTool<EE_POINT_EDITOR>()->HasPoint() ) && ( !m_toolMgr->GetTool<EE_POINT_EDITOR>()->HasPoint() || modifier_enabled ) )
{ {
m_originalCursor = m_toolMgr->GetMousePosition(); m_originalCursor = m_toolMgr->GetMousePosition();
m_disambiguateTimer.StartOnce( 500 ); m_disambiguateTimer.StartOnce( 500 );