-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Node
selection when navigating Tree
with Arrow keys
#86218
Fix Node
selection when navigating Tree
with Arrow keys
#86218
Conversation
Tree
with Arrow keysNode
selection when navigating Tree
with Arrow keys
Node
selection when navigating Tree
with Arrow keysNode
selection when navigating Tree
with Arrow keys
560696c
to
f894eb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
select_single_item()
looks more expensive than what was done previously, but I tested with a very big scene and it's not noticeable.
Also using that method might change what signals are emitted in different selection modes, but this could be desirable (and maybe fix other existing issues).
Thanks! |
selected_item = prev; | ||
emit_signal(SNAME("cell_selected")); | ||
|
||
select_single_item(prev, get_root(), selected_col); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is select_single_item
used for SELECT_MULTI
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arrow key overrides it. It's exactly what happens in other systems, such as in Windows file explorer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #12544
Arrow keys change actual selection (not just cursor) when navigating
Tree
andSceneTreeDock
.