Allow disabled properties to be expanded/collapsed via keyboard events (they could anyway be expanded/collapsed via the expander button)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-03-13 15:42:28 +00:00
parent 8e63b7b8ea
commit 48f0334de5

View File

@@ -4821,9 +4821,7 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
// Travel and expand/collapse
int selectDir = -2;
if ( p->GetChildCount() &&
!(p->m_flags & wxPG_PROP_DISABLED)
)
if ( p->GetChildCount() )
{
if ( action == wxPG_ACTION_COLLAPSE_PROPERTY || secondAction == wxPG_ACTION_COLLAPSE_PROPERTY )
{