Don't intercept key with modifiers in wxChoice

Check that we're dealing with plain keys, don't override accelerators
using {Alt,Ctrl,Shift}-Return, for example.
This commit is contained in:
Vadim Zeitlin
2021-07-23 17:12:19 +01:00
parent 61ff7de997
commit 47a5f42b78

View File

@@ -123,7 +123,10 @@ bool wxChoice::Create(wxWindow *parent,
bool wxChoice::MSWShouldPreProcessMessage(WXMSG *msg)
{
if ( msg->message == WM_KEYDOWN )
if ( msg->message == WM_KEYDOWN &&
!(HIWORD(msg->lParam) & KF_ALTDOWN) &&
!wxIsShiftDown() &&
!wxIsCtrlDown() )
{
switch ( msg->wParam )
{