Something else.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14982
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
for (size_t i = 0; i < m_lines.GetCount(); i++)
{
ret += m_lines[i].m_text;
- if (i < m_lines.GetCount())
+ if (i+1 < m_lines.GetCount())
ret += wxT('\n');
}
}
case WXK_RETURN:
{
+ if (m_windowStyle & wxPROCESS_ENTER)
+ {
+ wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, m_windowId);
+ event.SetEventObject(this);
+ event.SetString(GetValue());
+ if (GetEventHandler()->ProcessEvent(event)) return;
+ }
+
if (IsSingleLine())
{
event.Skip();