Apply shift-hotkey fix to all platforms
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1809
This commit is contained in:
parent
54fbcbac36
commit
793f133815
|
@ -508,7 +508,6 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
|
||||||
|
|
||||||
wxLogTrace( kicadTraceKeyEvent, "TOOL_DISPATCHER::DispatchWxEvent %s", dump( *ke ) );
|
wxLogTrace( kicadTraceKeyEvent, "TOOL_DISPATCHER::DispatchWxEvent %s", dump( *ke ) );
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
|
||||||
// Do not process wxEVT_CHAR_HOOK for a shift-modified key, as ACTION_MANAGER::RunHotKey
|
// Do not process wxEVT_CHAR_HOOK for a shift-modified key, as ACTION_MANAGER::RunHotKey
|
||||||
// will run the un-shifted key and that's not what we want. Wait to get the translated
|
// will run the un-shifted key and that's not what we want. Wait to get the translated
|
||||||
// key from wxEVT_CHAR.
|
// key from wxEVT_CHAR.
|
||||||
|
@ -518,7 +517,6 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
|
||||||
aEvent.Skip();
|
aEvent.Skip();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
keyIsEscape = ( ke->GetKeyCode() == WXK_ESCAPE );
|
keyIsEscape = ( ke->GetKeyCode() == WXK_ESCAPE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue