git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49919
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !bCtrlDown )
{
// this will contain the dialog code of this
if ( !bCtrlDown )
{
// this will contain the dialog code of this
- // window and all of its parent windows
+ // window and all of its parent windows in turn
LONG lDlgCode2 = lDlgCode;
LONG lDlgCode2 = lDlgCode;
- while ( win && !win->IsTopLevel() )
{
if ( lDlgCode2 & DLGC_WANTMESSAGE )
{
{
if ( lDlgCode2 & DLGC_WANTMESSAGE )
{
+ // don't propagate keyboard messages beyond
+ // the first top level window parent
+ if ( win->IsTopLevel() )
+ break;
+
+ win = win->GetParent();
+
lDlgCode2 = ::SendMessage
(
GetHwndOf(win),
lDlgCode2 = ::SendMessage
(
GetHwndOf(win),
-
- win = win->GetParent();