]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
Remove old GTK 1.2 code
[wxWidgets.git] / 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);
 
     // Reduces flicker on GTK+/X11
     SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+
+    // Make sure it can take the focus
+    SetCanFocus(true);
+
     return true;
 }
 
     return true;
 }