X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf8a60ae0ad390295135c852fba4e3332c32a458..217c78b80b34f31b4341d6257e28077255d6eb93:/src/stc/stc.cpp.in diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 17f06ad588..fd17cb2e76 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -330,6 +330,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());