https://bugs.documentfoundation.org/show_bug.cgi?id=152517
Bug ID: 152517
Summary: Navigator: Ctrl+Minus collapses the whole Headings
tree, not the selected node
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Create a text document with several headings, subheadings, and sub-subheadings
(using Heading 1, Heading 2, and Heading 3 paragraph styles), like
1
1.1
1.1.1
1.2
1.2.1
2
2.1
3
3.1.1
3.1.2
3.2
In Navigator, there will be shown a respective Headings tree, where you can
expand and collapse some nodes.
Now check that pressing simple [+] (Plus) keyboard key expands the immediate
children of the current node in the Navigator (keeping the subnodes state
unchanged); [Ctrl]+[+] expands all the subnodes of the current node,
irrespective of their prior state (this is the *correct* and expected
behavior).
E.g., if you collapse all sub-(sub-)nodes from bottom to top (so that every
node was collapsed initially), and then put cursor on node "1" and press [+],
the node "1" will expand to show "1.1" and "1.2", but not "1.1.1" nor "1.2.1";
and also nodes "2" and "3" will be still collapsed. If you collapse node "1",
and press [Ctrl]+[+], the whole tree under node "1" will expand, showing you
"1.1.1" and "1.2.1", but nodes "2" and "3" will be still collapsed.
A note: you may see that the state of subnodes is kept when you press [+], if
you first expand the whole node (select "1" and press [Ctrl]+[+]), then
collapse node "1.1" and node "1" (do not collapse node "1.2"), then select "1"
and press [+]: this will expand the "1", showing "1.1", "1.2", and "1.2.1" (as
it was still expanded when "1" got collapsed).
Pressing simple [-] (Minus) keyboard key collapses the immediate children of
the current node (keeping the subnodes state unchanged), and this is also
*correct* and expected. To summarize, [+] and [-] keyboard keys work exactly as
clicking on the respective "+" and "-" icons to the left of the selected node
acts.
Now the problem: Pressing [Ctrl]+[-] keyboard keys collapses the *whole
Headings top-level element in the Navigator*, no matter where in the subtree
you are. You may have selected "2.1", or "1", and after the [Ctrl]+[-], only
the top-level "Headings" element is visible, all the sub-elements are
collapsed. This is unexpected and inconsistent - both compared to how the
[Ctrl]+[+] counterpart works, and also to the behavior of other expandable
lists - see e.g. how Styles sidebar panel works, when Hierarchical view is
selected (pressing [Ctrl]+[-] on Text Body node collapses its children, but not
top-level nodes, nor siblings like Index).
Tested using Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
I don't know if these key combinations work the same on other OSes.
--
You are receiving this mail because:
You are the assignee for the bug.