From cd571515cb385a35c01b619301110df808c27185 Mon Sep 17 00:00:00 2001 From: Andreas Falkenhahn Date: Sat, 5 Dec 2020 22:45:13 +0100 Subject: [PATCH] Send wxEVT_TEXT when wxComboBox value changes in wxOSX This must be done for consistency with the other ports and because it just generally makes sense. Closes #18973. --- src/osx/cocoa/combobox.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osx/cocoa/combobox.mm b/src/osx/cocoa/combobox.mm index 9277d08d50..5b8ffd938d 100644 --- a/src/osx/cocoa/combobox.mm +++ b/src/osx/cocoa/combobox.mm @@ -159,6 +159,10 @@ event.SetString( val ); wxpeer->HandleWindowEvent( event ); + wxCommandEvent eventText(wxEVT_TEXT, wxpeer->GetId()); + eventText.SetEventObject( wxpeer ); + eventText.SetString( val ); + wxpeer->HandleWindowEvent( eventText ); } } }