summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-12-15 21:23:49 -0900
committerJim Raykowski <raykowj@gmail.com>2022-12-17 05:07:19 +0000
commiteef94d7b4360e17ba21577fe52bd60214bd5280c (patch)
tree1d4e634871392bb5fe37888f02abaad1e2db86f9 /vcl
parent8635c9aa8c6f1078a9e220076d5a08daf30077e8 (diff)
tdf#152517 Fix gen backend treeview ctrl+minus behavior
For gen type backends, makes the cursor node and all sub nodes collapsed on ctrl+minus key input. Change-Id: I53730aca29dd47766cfe8b4cdc81539633ebd8c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144286 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svimpbox.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx
index 63b4d928bfd5..b5efa69aa19d 100644
--- a/vcl/source/treelist/svimpbox.cxx
+++ b/vcl/source/treelist/svimpbox.cxx
@@ -2392,9 +2392,12 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt)
case KEY_SUBTRACT:
if (m_pView->IsExpanded(m_pCursor))
- m_pView->Collapse(m_pCursor);
- if (bMod1)
- CollapseTo(m_pTree->GetRootLevelParent(m_pCursor));
+ {
+ if (bMod1)
+ CollapseTo(m_pCursor);
+ else
+ m_pView->Collapse(m_pCursor);
+ }
break;
case KEY_MULTIPLY: