| commit | ffd8d368b3a780c7b687512540821ad52f2db457 | [log] |
|---|---|---|
| author | Jim Raykowski <raykowj@gmail.com> | Thu Dec 15 21:23:49 2022 -0900 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Tue Dec 20 06:09:49 2022 +0000 |
| tree | 1ae97704585dc3ff0e59cdd8132c997818e3a6b5 | |
| parent | 2ef1800e03890609b24883fa7fd970540280905e [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> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144452 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/vcl/source/treelist/svimpbox.cxx b/vcl/source/treelist/svimpbox.cxx index 63b4d92..b5efa69 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: