Skip to content

Fix file selection in FileSystem Tree Only mode - #125891

Open
YeanmitStudios wants to merge 3 commits into
godotengine:masterfrom
YeanmitStudios:experiment-filesystem-selection
Open

YeanmitStudios wants to merge 3 commits into
godotengine:masterfrom
YeanmitStudios:experiment-filesystem-selection

Conversation

@YeanmitStudios

Copy link
Copy Markdown

Fixes #125815

Description

When activating an item with the Enter key in FileSystem Tree Only mode, the focused item may not become the selected item.

This change ensures that the currently focused item becomes the selected item when activated, while deselecting previously selected items.

Changes

  • Deselect previously selected items.
  • Select the currently focused item if it is not already selected.
  • Preserve the existing selection when the item is already selected.

Testing

  • Tested keyboard navigation and Enter activation in Tree Only mode.
  • Tested folder expansion and file selection.
  • Tested Split mode.
  • Tested multiple selections.

@YeanmitStudios
YeanmitStudios requested a review from a team as a code owner November 27, 2026 22:13
Comment thread editor/docks/filesystem_dock.cpp Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileSystem: Selecting a file using arrowkeys + enter does not select file in Tree split mode

2 participants