Don't always turn on wxTE_PROCESS_ENTER in wxOSX

This style was unconditionally used for all multiline controls for some
reason, meaning that wxEVT_TEXT_ENTER could be received even for the controls
not using wxTE_PROCESS_ENTER explicitly, which was unexpected.

Don't do this any more to conform to the expected behaviour.

Also do use wxTE_PROCESS_ENTER for the text control supposed to allow handling
"Enter" in the text sample: surprisingly, it didn't have this style before,
although it was clearly supposed to.

Closes #1913.
This commit is contained in:
Vadim Zeitlin
2015-11-09 03:48:24 +01:00
parent a1a06bee7e
commit fbf59742a4
3 changed files with 2 additions and 9 deletions

View File

@@ -195,3 +195,4 @@ wxOSX/Cocoa:
- Provide native implementation of wxStandardPaths (Tobias Taschner).
- Add wxTE_{RIGHT,CENTER} support for multiline wxTextCtrl (Andreas Falkenhahn).
- Don't leave wxSlider labels shown when the slider itself is hidden.
- Don't generate wxEVT_TEXT_ENTER for controls without wxTE_PROCESS_ENTER.