Accelerators now work for wxDialog; wxToolBarSimple fixed when dragging out of
the toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,7 +36,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
|
||||
|
||||
bool wxButton::MSWCommand(WXUINT param, WXWORD id)
|
||||
{
|
||||
if (param == BN_CLICKED)
|
||||
if (param == BN_CLICKED || (param == 1)) // 1 for accelerator
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, id);
|
||||
event.SetEventObject(this);
|
||||
|
Reference in New Issue
Block a user