compilation fix for wxUSE_ACCEL && !wxUSE_BUTTON

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2006-12-14 16:53:05 +00:00
parent 6b44a33553
commit 2c4eefc056

View File

@ -1311,6 +1311,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event)
}
#endif // wxUSE_MENUS
#if wxUSE_BUTTON
// if it wasn't in a menu, try to find a button
if ( command != -1 )
{
@ -1326,6 +1327,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event)
}
}
}
#endif // wxUSE_BUTTON
// don't propagate accels from the child frame to the parent one
break;