Fix getting wxEVT_TEXT_ENTER from wxSearchCtrl

wxSearchCtrl never generated this event, at least under MSW, even though
the code to forward it from wxSearchTextCtrl was present in it, because
it was never generated in the first place without wxTE_PROCESS_ENTER.

Fix this by simply always using this style in wxSearchTextCtrl.
This commit is contained in:
Vadim Zeitlin
2018-01-27 14:01:58 +01:00
parent 652b4eb8ed
commit 9816970797

View File

@@ -49,7 +49,7 @@ class wxSearchTextCtrl : public wxTextCtrl
public:
wxSearchTextCtrl(wxSearchCtrl *search, const wxString& value, int style)
: wxTextCtrl(search, wxID_ANY, value, wxDefaultPosition, wxDefaultSize,
(style & ~wxBORDER_MASK) | wxNO_BORDER)
(style & ~wxBORDER_MASK) | wxNO_BORDER | wxTE_PROCESS_ENTER)
{
m_search = search;