use HandleWindowEvent() in ProcessCommand(); return the value this function returns instead of returning true unconditionally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -211,8 +211,7 @@ bool wxFrameBase::ProcessCommand(int id)
|
||||
}
|
||||
}
|
||||
|
||||
GetEventHandler()->ProcessEvent(commandEvent);
|
||||
return true;
|
||||
return HandleWindowEvent(commandEvent);
|
||||
#else // !wxUSE_MENUS
|
||||
wxUnusedVar(id);
|
||||
|
||||
|
Reference in New Issue
Block a user