pcbnew: Fix hotkeys during routing

CHANGED: Fix hotkeys for actions during routing

Previously hotkeys on shifted characters would not be
passed through the router and processed.
This commit is contained in:
Ian McInerney 2019-11-10 17:47:51 +00:00
parent d8c80623ce
commit 1b14a38b01
1 changed files with 7 additions and 0 deletions

View File

@ -812,6 +812,13 @@ void ROUTER_TOOL::performRouting()
break; break;
} }
else if( evt->IsKeyPressed() )
{
// wxWidgets fails to correctly translate shifted keycodes on the wxEVT_CHAR_HOOK
// event so we need to process the wxEVT_CHAR event that will follow as long as we
// pass the event.
evt->SetPassEvent();
}
} }
finishInteractive(); finishInteractive();