don't duplicate base class m_acceleratorTable as m_accelTable in wxMenuBar, this is not only unnecessary but also doesn't allow using GetAcceleratorTable() to retrieve the menu bar accelerators (#9654)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -828,13 +828,10 @@ bool wxFrame::MSWDoTranslateMessage(wxFrame *frame, WXMSG *pMsg)
|
||||
return true;
|
||||
|
||||
#if wxUSE_MENUS && wxUSE_ACCEL && !defined(__WXUNIVERSAL__)
|
||||
// try the menu bar accels
|
||||
// try the menu bar accelerators
|
||||
wxMenuBar *menuBar = GetMenuBar();
|
||||
if ( menuBar )
|
||||
{
|
||||
const wxAcceleratorTable& acceleratorTable = menuBar->GetAccelTable();
|
||||
return acceleratorTable.Translate(frame, pMsg);
|
||||
}
|
||||
if ( menuBar && menuBar->GetAcceleratorTable()->Translate(frame, pMsg) )
|
||||
return true;
|
||||
#endif // wxUSE_MENUS && wxUSE_ACCEL
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user