X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a904ed2c8e491f0a0e8c481ceaa15f8166d55c9..55fbde1232bff0ed44c23775911574ac1b2f8a0a:/src/generic/listctrl.cpp?ds=inline diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index c0fe60314f..67562c04aa 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5000,6 +5000,9 @@ bool wxGenericListCtrl::Create(wxWindow *parent, if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) ) return false; + // this window itself shouldn't get the focus, only m_mainWin should + SetCanFocus(false); + // don't create the inner window with the border style &= ~wxBORDER_MASK;