On 16 September 2010 20:08, Sandro Martini <[email protected]> wrote:

>
> Hi Chris,
> thanks for the ticket ( https://issues.apache.org/jira/browse/PIVOT-638 ),
>  I've just add a link to this thread, for easy recover some info ...
>
You beat me to it!


Below is a bit off topic, so apologies & skip as desired.

>  > And maybe on Tree there is another operation that at the moment doesn't
> > have a shortcut: open/close a node, suggestions ? Do you like <Enter> for
>  > this ?


I have created a custom subclass of TreeView (along with a custom skin) to
enhance the usability from the keyboard.  In it, I replicated the behaviour
that can be found in Windows Explorer.

(I don't have it in front of me, but from memory)
Left arrow will close the selected node if it is a branch and is open
Left arrow will jump to the parent branch of the selected node if it is not
a branch, or is a closed branch
Right arrow will expand/open the selected node if it is a branch and is
closed
Right arrow will change the selection from the selected node to the first
child node if the selection is a branch and is open
I also added Control+Right to fully expand all nodes below the selection,
and Control+Left to collapse the entire tree to just the root nodes.
Control+Up/Down to jump between nodes at the same level, bypassing children
in expanded branches

Chris

Reply via email to