]> git.saurik.com Git - wxWidgets.git/commitdiff
Use SetCanFocus
authorRobin Dunn <robin@alldunn.com>
Thu, 27 Mar 2008 21:32:05 +0000 (21:32 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 27 Mar 2008 21:32:05 +0000 (21:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/stc/stc.cpp

index 6230d02ca53b0b09c7988441217b651bc82751d0..634b988471bb69b0637d594b23a10744dc0a4f9f 100644 (file)
@@ -197,6 +197,10 @@ bool wxStyledTextCtrl::Create(wxWindow *parent,
 
     // Reduces flicker on GTK+/X11
     SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+
+    // Make sure it can take the focus
+    SetCanFocus(true);
+
     return true;
 }