X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92bbd64f7fc6d489fa7af1193feef7f3308da549..217c78b80b34f31b4341d6257e28077255d6eb93:/src/stc/stc.cpp.in?ds=sidebyside diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index 4b00760485..fd17cb2e76 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -327,10 +327,10 @@ void wxStyledTextCtrl::OnScroll(wxScrollEvent& evt) { void wxStyledTextCtrl::OnSize(wxSizeEvent& evt) { wxSize sz = GetClientSize(); m_swx->DoSize(sz.x, sz.y); - Refresh(FALSE); } 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());