Skip to content
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

FileDialog/EditorFileDialog filter does not allow pressing Enter to enter a folder once it has been autoselected #98838

Open
Calinou opened this issue Nov 5, 2024 · 0 comments

Comments

@Calinou
Copy link
Member

Calinou commented Nov 5, 2024

Tested versions

System information

Godot v4.4.dev (b3bcb2d) - Fedora Linux 41 (KDE Plasma) on X11 - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (nvidia; 565.57.01) - 13th Gen Intel(R) Core(TM) i9-13900K (32 threads)

Issue description

When you use FileDialog or EditorFileDialog with the Open File, Open Files or Save mode, you cannot select a folder as your chosen file. However, you can still enter it by pressing the same shortcut as you would have to select the folder. This doesn't work when relying on automatic selection from the file filter:

Here, I press Enter after entering something in the filter that automatically selects the first visible item:

file_dialog_enter.mp4

If I manually focus the item and press Enter, the folder will be entered, but here, nothing happens. In Save mode, the dialog closes instead (likely because it tries to save in the current folder, even though the user's intent would be to enter the folder instead).

Note that I tested EditorFileDialog with #98022.

Steps to reproduce

  • Open an EditorFileDialog, e.g. by changing the project icon in the Project Settings.
  • Press Ctrl + F to bring up the file filter and enter a folder's name.
  • Press Enter.

Minimal reproduction project (MRP)

test_pr_98022.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant