X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dee22e3198c17e325ff4862520aec104d40b9948..931d6a47c32a5b4c283243cb553ce71ee2b535d5:/include/wx/containr.h diff --git a/include/wx/containr.h b/include/wx/containr.h index 3f91f3e6a3..277909e559 100644 --- a/include/wx/containr.h +++ b/include/wx/containr.h @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 06.08.01 -// RCS-ID: $Id$ // Copyright: (c) 2001, 2011 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -76,11 +75,11 @@ public: bool DoSetFocus(); // returns whether we should accept focus ourselves or not - bool AcceptsFocus() const { return m_acceptsFocusSelf; } + bool AcceptsFocus() const; // Returns whether we or one of our children accepts focus. bool AcceptsFocusRecursively() const - { return m_acceptsFocusSelf || + { return AcceptsFocus() || (m_acceptsFocusChildren && HasAnyChildrenAcceptingFocus()); } // We accept focus from keyboard if we accept it at all.