- // if we're not shown or disabled, we can't accept focus
- if ( m_winParent->IsShown() && m_winParent->IsEnabled() )
- {
- // otherwise we can accept focus either if we have no children at all
- // (in this case we're probably not used as a container) or only when
- // at least one child will accept focus
- wxWindowList::compatibility_iterator node = m_winParent->GetChildren().GetFirst();
- if ( !node )
- return true;
+ // we can accept focus either if we have no children at all (in this case
+ // we're probably not used as a container) or only when at least one child
+ // accepts focus
+ wxWindowList::compatibility_iterator node = m_winParent->GetChildren().GetFirst();
+ if ( !node )
+ return true;