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:
@@ -1160,7 +1160,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
||||
m_tab->SetClientData((void *)wxT("tab"));
|
||||
|
||||
m_enter = new MyTextCtrl( this, 100, wxT("Multiline, allow <ENTER> processing."),
|
||||
wxPoint(180,170), wxSize(200,70), wxTE_MULTILINE);
|
||||
wxPoint(180,170), wxSize(200,70), wxTE_MULTILINE | wxTE_PROCESS_ENTER );
|
||||
m_enter->SetClientData((void *)wxT("enter"));
|
||||
|
||||
m_textrich = new MyTextCtrl(this, wxID_ANY, wxT("Allows more than 30Kb of text\n")
|
||||
|
Reference in New Issue
Block a user