Double-click a node in the Scene Tree to show or hide children #8953
samuel-walker
started this conversation in
Editor
Replies: 2 comments
-
Double-clicking a node will show the rename form (if you click slowly the second time), or it will focus on the node in the 2D/3D editor (if you double-click quickly).
I believe Right arrow already expands a section in a tree and Left arrow collapses it. These shortcuts are standard in tree-style controls in most operating systems. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Whoops! I am embarrassed. You are correct. I somehow missed both of those
things. Those make sense as default behaviours.
…On Wed, Jan 24, 2024, 10:45 a.m. Hugo Locurcio ***@***.***> wrote:
It doesn't appear there is any double-click functionality on nodes right
now
Double-clicking a node will show the rename form (if you click slowly the
second time), or it will focus on the node in the 2D/3D editor (if you
double-click quickly).
—
Reply to this email directly, view it on GitHub
<#8953 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHUD3R7PRUNWVL7JDVFKWGDYQFJCVAVCNFSM6AAAAABCIE2DW2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEMZWGU2DK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. This is a pretty basic suggestion, and I'm not sure if it's already been discussed. A quick search didn't reveal anything.
I often work on Godot on a laptop with a trackpad. I find the small expander arrows next to nodes with children in the Scene Tree are a bit cumbersome to click on because they are small.
I found myself today trying to instead double-click the node name or icon to expand/collapse the list of children. It doesn't appear there is any double-click functionality on nodes right now. I would propose adding a behavior to expand or collapse the children of the node once double-clicked. The double-clickable area is already pretty well defined by the area highlighted when the node is selected in the tree:
If expand/collapse is not supported, I would also consider the following behaviors useful options for double-click behavior, again to avoid having to click small icons:
But I think these options are worse, as in my projects at least, it is more likely a node has a child than is an instanced scene or has an attached script.
Finally, for accessibility reasons, it might also be wise to add a keyboard option for this behavior. You can navigate the scene tree and select nodes with the up/down arrow keys currently. Perhaps the Enter key would be the best option for matching the proposed double-click behavior, expanding/collapsing the selected node.
I imagine this proposal might affect all instances of trees in the editor, but I think this kind of behavior is appropriate for any tree UI object.
Thanks for considering this proposal.
Beta Was this translation helpful? Give feedback.
All reactions