X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a086de984d366b97e91b39aaba7acd84430d963a..54905eba2af891b874e92acf89ffdeb9cf7bce9d:/src/os2/textctrl.cpp diff --git a/src/os2/textctrl.cpp b/src/os2/textctrl.cpp index b99d13006c..f375a38886 100644 --- a/src/os2/textctrl.cpp +++ b/src/os2/textctrl.cpp @@ -1066,6 +1066,15 @@ void wxTextCtrl::OnChar( rEvent.Skip(); } // end of wxTextCtrl::OnChar +void wxTextCtrl::SetFocus() +{ + wxTextCtrlBase::SetFocus(); + if ( !HasFlag(wxTE_MULTILINE) ) + { + SetSelection(-1, -1); + } +} // end of wxTextCtrl::SetFocus + bool wxTextCtrl::OS2Command( WXUINT uParam , WXWORD WXUNUSED(vId)