]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp.in
Changed wxStat, wxAccess and wxOpen to no longer
[wxWidgets.git] / src / stc / stc.cpp.in
index 17f06ad5883655ddbe4ca3cc8aae508b0f37ebbe..9e3083e7d2bee7bfd9dc8d0b493a94a453f9e306 100644 (file)
@@ -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());
@@ -364,7 +365,8 @@ void wxStyledTextCtrl::OnMouseWheel(wxMouseEvent& evt) {
     m_swx->DoMouseWheel(evt.GetWheelRotation(),
                         evt.GetWheelDelta(),
                         evt.GetLinesPerAction(),
-                        evt.ControlDown());
+                        evt.ControlDown(),
+                        evt.IsPageScroll());
 }