]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp.in
Patches-1940222 ] wxTextCtrl and keydown on fully selected text (wxMac)
[wxWidgets.git] / src / stc / stc.cpp.in
index 73a311bf8b051a8f5a1656b4224f0b7ae60b2415..b5d72181357e57c092b3e690c16eb8d856c495ae 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;
 }