Generate wxEVT_SEARCHCTRL_SEARCH_BTN when Enter is pressed

Make it possible to bind to just wxEVT_SEARCHCTRL_SEARCH_BTN under all
platforms: previously, it was also necessary to bind to wxEVT_TEXT_ENTER
when using the generic implementation, as pressing Enter in the text
control didn't generate the dedicated SEARCH event.

It does now, and, to avoid any confusion, the control does not generate
wxEVT_TEXT_ENTER events at all any more. This is not really
incompatible, as wxOSX never generated these events anyhow and the
generic version only did for a couple of days, since the changes of
9816970797 which were, finally, misguided
and so are undone by this commit.

Closes #17911.
This commit is contained in:
Vadim Zeitlin
2018-01-30 01:42:06 +01:00
parent e5a1931b64
commit ea08b8539a
4 changed files with 21 additions and 9 deletions

View File

@@ -177,6 +177,7 @@ All (GUI):
- Add Set/GetFooter/Text/Icon() to wxRichMessageDialog (Tobias Taschner)
- Add wxFloatingPointValidator::SetFactor().
- Add "hint" property to wxSearchCtrl XRC handler.
- Generate wxEVT_SEARCHCTRL_SEARCH_BTN on Enter under all platforms.
wxGTK: