send wxNavigationKeyEvent to the correct window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-26 15:14:21 +00:00
parent d63f7562cf
commit b348c1dac1

View File

@@ -82,12 +82,15 @@ private:
{ {
wxNavigationKeyEvent event; wxNavigationKeyEvent event;
event.SetFlags(flags); event.SetFlags(flags);
if ( ProcessEvent(event) ) if ( m_panel->ProcessEvent(event) )
wxLogStatus(this, _T("Navigation event processed")); wxLogStatus(this, _T("Navigation event processed"));
else else
wxLogStatus(this, _T("Navigation event ignored")); wxLogStatus(this, _T("Navigation event ignored"));
} }
wxPanel *m_panel;
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };
@@ -154,7 +157,7 @@ MyFrame::MyFrame()
SetMenuBar(mbar); SetMenuBar(mbar);
new MyPanel(this); m_panel = new MyPanel(this);
CreateStatusBar(StatusPane_Max); CreateStatusBar(StatusPane_Max);
} }