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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user