+ OSStatus result = eventNotHandledErr;
+ wxComboBox* cb = (wxComboBox*) data;
+
+ wxMacCarbonEvent cEvent( event );
+
+ switch( cEvent.GetClass() )
+ {
+ case kEventClassTextField :
+ switch( cEvent.GetKind() )
+ {
+ case kEventTextAccepted :
+ {
+ wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, cb->GetId() );
+ event.SetInt( cb->GetSelection() );
+ event.SetString( cb->GetStringSelection() );
+ event.SetEventObject( cb );
+ cb->HandleWindowEvent( event );
+ }
+ break;
+ default :
+ break;
+ }
+ break;
+ default :
+ break;
+ }
+
+
+ return result;