X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cec1c9e153bd1dca8c3f27353466762ae82c7f7..a2d382650097c5834093a8af0566e1c1ff683c8d:/include/wx/containr.h diff --git a/include/wx/containr.h b/include/wx/containr.h index 0d38361739..87ab324a28 100644 --- a/include/wx/containr.h +++ b/include/wx/containr.h @@ -70,10 +70,9 @@ public: // wxListCtrl) and so should get focus for ourselves bool AcceptsFocusRecursively() const { return true; } - // call this when the number of children of the window changes - // - // note that we have any children, this panel (used just as container for - // them) shouldn't get focus for itself + // Call this when the number of children of the window changes. + // If we have any children, this panel (used just as container for + // them) shouldn't get focus for itself. void UpdateCanFocus() { SetCanFocus(!HasAnyFocusableChildren()); } protected: @@ -177,7 +176,7 @@ protected: \ void classname::SetFocusIgnoringChildren() \ { \ - basename::SetFocusIgnoringChildren(); \ + basename::SetFocus(); \ } #else // !wxHAS_NATIVE_TAB_TRAVERSAL