From 7593ee3917c1837fa2b71215ee62217fff87d33b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 25 Mar 2021 12:22:31 +0000 Subject: [PATCH] Add right/left arrows for exapand/collapse. Fixes https://gitlab.com/kicad/code/kicad/issues/8022 --- common/widgets/lib_tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/widgets/lib_tree.cpp b/common/widgets/lib_tree.cpp index e0184f1a5b..51b56a56b0 100644 --- a/common/widgets/lib_tree.cpp +++ b/common/widgets/lib_tree.cpp @@ -348,12 +348,14 @@ void LIB_TREE::onQueryCharHook( wxKeyEvent& aKeyStroke ) break; case WXK_ADD: + case WXK_RIGHT: if( type == LIB_TREE_NODE::LIB ) m_tree_ctrl->Expand( sel ); break; case WXK_SUBTRACT: + case WXK_LEFT: if( type == LIB_TREE_NODE::LIB ) m_tree_ctrl->Collapse( sel );