From 1b14a38b01de4e8fbb07c1111adb644395e694df Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 10 Nov 2019 17:47:51 +0000 Subject: [PATCH] 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. --- pcbnew/router/router_tool.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 48ed949fa6..4ed515a2fc 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -812,6 +812,13 @@ void ROUTER_TOOL::performRouting() 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();