From 439cce144346e29dbce3b92637defeb9d746f46f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 27 Mar 2008 21:32:05 +0000 Subject: [PATCH] Use SetCanFocus git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/stc/stc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index 6230d02ca5..634b988471 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -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; } -- 2.45.2