Add component/footprint is always immediate

When a user clicks on the "Add Component", "Add Power" or "Add Footprint"
icon, they want to add the item.  Requiring an extra click on the screen
before selecting the component/footprint is not needed.
This commit is contained in:
Seth Hillbrand 2021-02-23 15:10:40 -08:00
parent 509b1b7141
commit 005622027f
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ int SCH_DRAWING_TOOLS::PlaceComponent( const TOOL_EVENT& aEvent )
getViewControls()->WarpCursor( getViewControls()->GetMousePosition( false ) );
m_toolMgr->RunAction( ACTIONS::refreshPreview );
}
else if( aEvent.HasPosition() )
else
{
m_toolMgr->RunAction( EE_ACTIONS::cursorClick );
}

View File

@ -818,7 +818,7 @@ int BOARD_EDITOR_CONTROL::PlaceFootprint( const TOOL_EVENT& aEvent )
m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, fp );
m_toolMgr->RunAction( ACTIONS::refreshPreview );
}
else if( aEvent.HasPosition() )
else
m_toolMgr->RunAction( PCB_ACTIONS::cursorClick );
auto setCursor =