From 3801f213a84707b5c593896a428d72669a368743 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Dec 2002 01:07:33 +0000 Subject: [PATCH] allow TABbing into multiline text controls even if they're not editable (backported from the trunk) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 34956b23ae..43618accd8 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1564,8 +1564,10 @@ bool wxTextCtrl::AdjustSpaceLimit() 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