Add right/left arrows for exapand/collapse.

Fixes https://gitlab.com/kicad/code/kicad/issues/8022
This commit is contained in:
Jeff Young 2021-03-25 12:22:31 +00:00
parent faa5ed3e37
commit 7593ee3917
1 changed files with 2 additions and 0 deletions

View File

@ -348,12 +348,14 @@ void LIB_TREE::onQueryCharHook( wxKeyEvent& aKeyStroke )
break; break;
case WXK_ADD: case WXK_ADD:
case WXK_RIGHT:
if( type == LIB_TREE_NODE::LIB ) if( type == LIB_TREE_NODE::LIB )
m_tree_ctrl->Expand( sel ); m_tree_ctrl->Expand( sel );
break; break;
case WXK_SUBTRACT: case WXK_SUBTRACT:
case WXK_LEFT:
if( type == LIB_TREE_NODE::LIB ) if( type == LIB_TREE_NODE::LIB )
m_tree_ctrl->Collapse( sel ); m_tree_ctrl->Collapse( sel );