eeschema: Allow tree expand/collapse with +/-
This commit is contained in:
parent
b690658972
commit
3ea766154b
|
@ -327,6 +327,18 @@ void LIB_TREE::onQueryCharHook( wxKeyEvent& aKeyStroke )
|
||||||
selectIfValid( GetNextItem( *m_tree_ctrl, sel ) );
|
selectIfValid( GetNextItem( *m_tree_ctrl, sel ) );
|
||||||
break;
|
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:
|
case WXK_RETURN:
|
||||||
if( type == LIB_TREE_NODE::LIB )
|
if( type == LIB_TREE_NODE::LIB )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue