corrected mac src due to new api changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -680,12 +680,15 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
|
||||
}
|
||||
if ( panel && panel->GetDefaultItem() )
|
||||
{
|
||||
wxButton *def = panel->GetDefaultItem() ;
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, def->GetId() );
|
||||
event.SetEventObject(def);
|
||||
def->Command(event);
|
||||
event.Skip() ;
|
||||
return ;
|
||||
wxButton *def = wxDynamicCast(panel->GetDefaultItem(),
|
||||
wxButton);
|
||||
if ( def && def->IsEnabled() )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, def->GetId() );
|
||||
event.SetEventObject(def);
|
||||
def->Command(event);
|
||||
return ;
|
||||
}
|
||||
}
|
||||
}
|
||||
//else: multiline controls need Enter for themselves
|
||||
|
Reference in New Issue
Block a user