]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/textctrl.cpp
Corrected link error for missing wxRegTipProvider::GetTip by giving it
[wxWidgets.git] / src / msw / textctrl.cpp
index d166ede2c26a2dfc75bb101f4b10b21b850efe40..97dfca82bdc28f4dd4b4c354f7de3ad07ecd125a 100644 (file)
@@ -1280,3 +1280,8 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
     event.Enable( CanRedo() );
 }
 
+bool wxTextCtrl::AcceptsFocus() const
+{
+    // we don't want focus if we can't be edited
+    return IsEditable() && wxControl::AcceptsFocus();
+}