]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/textctrl.mm
Draw wxPropertyGrid drop down items with consistent (non-bold) font (fixes #12088)
[wxWidgets.git] / src / cocoa / textctrl.mm
index 67da0acd68d466a29d081663365397647e3c17cc..b42cb65b2ebcc0a058dc94953b4f5d7ed46d1a81 100644 (file)
@@ -94,15 +94,7 @@ void wxTextCtrl::Cocoa_didChangeText(void)
 
 void wxTextCtrl::CocoaTarget_action(void)
 {
-    // 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);
+    SendTextUpdatedEvent();
 }
 
 void wxTextCtrl::AppendText(wxString const&)