git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18044
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxTextCtrl::AcceptsFocus() const
{
bool wxTextCtrl::AcceptsFocus() const
{
- // we don't want focus if we can't be edited
- return IsEditable() && wxControl::AcceptsFocus();
+ // we don't want focus if we can't be edited unless we're a multiline
+ // control because then it might be still nice to get focus from keyboard
+ // to be able to scroll it without mouse
+ return (IsEditable() || IsMultiLine()) && wxControl::AcceptsFocus();
}
wxSize wxTextCtrl::DoGetBestSize() const
}
wxSize wxTextCtrl::DoGetBestSize() const