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:
parent
57c0953c39
commit
83ad0d5fad
|
@ -325,6 +325,14 @@ void TOOL_BASE::updateStartItem( const TOOL_EVENT& aEvent, bool aIgnorePads )
|
||||||
|
|
||||||
pos = GetClampedCoords( pos, COORDS_PADDING );
|
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 );
|
controls()->ForceCursorPosition( false );
|
||||||
m_gridHelper->SetUseGrid( gal->GetGridSnapping() && !aEvent.DisableGridSnapping() );
|
m_gridHelper->SetUseGrid( gal->GetGridSnapping() && !aEvent.DisableGridSnapping() );
|
||||||
m_gridHelper->SetSnap( !aEvent.Modifier( MD_SHIFT ) );
|
m_gridHelper->SetSnap( !aEvent.Modifier( MD_SHIFT ) );
|
||||||
|
|
Loading…
Reference in New Issue