X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ec704b4221ee4d66ebb1cb98f1dc1017f68bec3..eecf97a5ee1df46b19ca85a00229cd81d185bd6f:/src/generic/scrlwing.cpp diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 45a6e21f3c..ec5d404f50 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1341,6 +1341,11 @@ void wxScrollHelper::HandleOnChildFocus(wxChildFocusEvent& event) if ( win == m_targetWindow ) return; // nothing to do +#ifdef __WXMAC__ + if (wxDynamicCast(win, wxScrollBar)) + return; +#endif + // Fixing ticket: http://trac.wxwidgets.org/ticket/9563 // When a child inside a wxControlContainer receives a focus, the // wxControlContainer generates an artificial wxChildFocusEvent for