Honor Ctrl+Shift combo when starting routing

We want to be able to start routing at an arbitrary point if we
explicitly disable the snapping and grid together
This commit is contained in:
Seth Hillbrand 2024-05-20 16:30:01 -07:00
parent 57c0953c39
commit 83ad0d5fad
1 changed files with 8 additions and 0 deletions

View File

@ -325,6 +325,14 @@ void TOOL_BASE::updateStartItem( const TOOL_EVENT& aEvent, bool aIgnorePads )
pos = GetClampedCoords( pos, COORDS_PADDING );
if( aEvent.Modifier( MD_CTRL ) && aEvent.Modifier( MD_SHIFT ) )
{
m_startItem = nullptr;
m_startSnapPoint = controls()->GetMousePosition();
controls()->ForceCursorPosition( true, m_startSnapPoint );
return;
}
controls()->ForceCursorPosition( false );
m_gridHelper->SetUseGrid( gal->GetGridSnapping() && !aEvent.DisableGridSnapping() );
m_gridHelper->SetSnap( !aEvent.Modifier( MD_SHIFT ) );