eeschema: Allow tree expand/collapse with +/-

This commit is contained in:
Seth Hillbrand 2019-01-22 22:33:00 -08:00
parent b690658972
commit 3ea766154b
1 changed files with 12 additions and 0 deletions

View File

@ -327,6 +327,18 @@ void LIB_TREE::onQueryCharHook( wxKeyEvent& aKeyStroke )
selectIfValid( GetNextItem( *m_tree_ctrl, sel ) );
break;
case WXK_ADD:
if( type == LIB_TREE_NODE::LIB )
m_tree_ctrl->Expand( sel );
break;
case WXK_SUBTRACT:
if( type == LIB_TREE_NODE::LIB )
m_tree_ctrl->Collapse( sel );
break;
case WXK_RETURN:
if( type == LIB_TREE_NODE::LIB )
{