X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9409ae3e0ae1c610a2f00bc494f00949c61e063..377a219ac700cdf055216541a150a0f25912f373:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index ffefb86119..0a8ccd6bc1 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -1877,6 +1877,7 @@ void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) { } void wxStyledTextCtrl::OnMouseLeftDown(wxMouseEvent& evt) { + SetFocus(); wxPoint pt = evt.GetPosition(); m_swx->DoButtonDown(Point(pt.x, pt.y), m_stopWatch.Time(), evt.ShiftDown(), evt.ControlDown(), evt.AltDown());