Do not check key states for non-key events in TryBefore
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10127
This commit is contained in:
parent
20bbf9b179
commit
2306d00c89
|
@ -96,6 +96,8 @@ bool PCB_BASE_EDIT_FRAME::TryBefore( wxEvent& aEvent )
|
|||
{
|
||||
static bool s_switcherShown = false;
|
||||
|
||||
if( aEvent.GetEventType() == wxEVT_CHAR || aEvent.GetEventType() == wxEVT_CHAR_HOOK )
|
||||
{
|
||||
if( !s_switcherShown && wxGetKeyState( WXK_RAW_CONTROL ) && wxGetKeyState( WXK_TAB ) )
|
||||
{
|
||||
if( m_appearancePanel && this->IsActive() )
|
||||
|
@ -115,6 +117,7 @@ bool PCB_BASE_EDIT_FRAME::TryBefore( wxEvent& aEvent )
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return PCB_BASE_FRAME::TryBefore( aEvent );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue