]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
Nicer looking OS/2 Statusbar
[wxWidgets.git] / src / stc / stc.cpp
index ffefb86119f04677f316c4a8ad909ee03df8b988..0a8ccd6bc172c0b2728d88ff4edde912e183a59d 100644 (file)
@@ -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());