call MSWProcessMessage() for the window itself, although a comment said that this was done it, in fact, wasn't (since rev 1.11 when this was changed, apparently accidentally)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,16 +171,14 @@ bool wxEventLoop::PreProcessMessage(WXMSG *msg)
|
|||||||
|
|
||||||
// now try the other hooks (kbd navigation is handled here)
|
// now try the other hooks (kbd navigation is handled here)
|
||||||
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
|
||||||
{
|
|
||||||
if (wnd != wndThis) // Skip the first since wndThis->MSWProcessMessage() was called above
|
|
||||||
{
|
{
|
||||||
if ( wnd->MSWProcessMessage((WXMSG *)msg) )
|
if ( wnd->MSWProcessMessage((WXMSG *)msg) )
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
// Stop at first top level window (as per comment above).
|
// also stop at first top level window here, just as above because
|
||||||
// If we don't do this, pressing ESC on a modal dialog shown as child of a modal
|
// if we don't do this, pressing ESC on a modal dialog shown as child
|
||||||
// dialog with wxID_CANCEL will cause the parent dialog to be closed, for example
|
// of a modal dialog with wxID_CANCEL will cause the parent dialog to
|
||||||
|
// be closed, for example
|
||||||
if ( wnd->IsTopLevel() )
|
if ( wnd->IsTopLevel() )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user