- // NSTextField only sends the action message on enter key press and thus
- // we send the appropriate event type.
- wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, GetId());
-
- // See wxTextCtrlBase::SendTextUpdatedEvent for why we don't set the string.
- //event.SetString(GetValue());
-
- event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);