Don't copy modifiers to prime events.

The modifiers go with the hotkey, not with the action.

Fixes https://gitlab.com/kicad/code/kicad/issues/11618
This commit is contained in:
Jeff Young
2022-05-16 13:51:40 +01:00
parent 1f088984ce
commit f2fc78f380
9 changed files with 37 additions and 42 deletions
+1 -2
View File
@@ -577,9 +577,8 @@ int DRAWING_TOOL::InteractivePlaceWithPreview( const TOOL_EVENT& aEvent,
// Must be done after Activate() so that it gets set into the correct context
m_controls->ShowCursor( true );
// Prime the pump
if( aEvent.HasPosition() )
m_toolMgr->RunAction( ACTIONS::cursorClick );
m_toolMgr->PrimeTool( aEvent.Position() );
// Main loop: keep receiving events
wxPoint wxCursorPosition = wxPoint();