Open duianto opened 1 year ago
v4.1.beta.custom_build [c0d8d91b1] no longer creates a dialog for renaming the file, but creates a LineEdit in the FileSystem panel. Not sure how to replicate this in current master.
Confirmed, the FileSystem panels rename dialog is gone in: v4.1.rc2.official [46424488e]
But I'm seeing the same Alt Tab
issue with lots of other (all?) dialog windows.
Scene > New Inherited Scene...
Project > Project Settings...
Editor > Editor Settings...
Editor > Command Palette...
Even in the Project Managers Create New Project
dialog.
Alt Tabbing away from Godot, and Alt Tabbing back, requires a mouse click to restore keyboard input to the dialog window.
I believe I'm seeing similar behavior in iOS: if the user switches to a different app while a Window is displayed, that Window is closed/hidden. My app pauses the tree when displaying options, and if the user switches away, the app appears frozen when they return.
Godot version
v4.0.rc3.official [7e79aead9]
System information
Windows 10 22H2, Compatibility, GeForce GTX 550 Ti
Issue description
Issue: v4.0.rc3.official [7e79aead9]
The
FileSystem
panels,Renaming file...
dialog, loses focus to the main Godot window, when switching (alt + tab
) to another application and back (alt + tab
) to Godot.Screen recording:
FileSystem
panel,icon.svg
right-clickedRename...
left-clicked,Renaming file...
dialog opens and becomes focusedalt + tab
pressed,MS Paint
focusedalt + tab
pressed, MainGodot
window focused (unexpected)Renaming file...
dialogs title bar left-clicked, the dialog becomes focusedalt + tab
pressed,MS Paint
focusedalt + tab
pressed,Renaming file...
dialog focused (expected)Godot
title bar left-clicked, it becomes focusedalt + tab
pressed,MS Paint
focusedalt + tab
pressed, MainGodot
title bar becomes focusedhttps://user-images.githubusercontent.com/13420573/220925811-bf83fdca-d511-42dc-a959-05be4eec6d12.mp4
Not an issue: v3.5.2.rc2.official [1a2bf3eb4] and v3.5.1.stable.official [6fed1ffa3]
Renaming file: icon.png
dialogs input box remains focused afteralt + tab
twice.Renaming file: icon.png
dialog opens, and after pressingalt + tab
twice.Screenshot. Godot behaves and looks the same after pressing
alt + tab
twice.Steps to reproduce
open the attached project: issue, renaming file dialog unfocused after alt tab twice.zip
in the
FileSystem
panelright-click on:
icon.svg
on the context menu, left-click on:
Rename...
A dialog opens and is focused:Renaming file...
The nameicon
is selected, and the cursor blinks at the beginning of the selectionswitch to another application:
Alt + Tab
switch back to Godot:
Alt + Tab
Expected
The
Renaming file...
dialog should become focused again, so that the name can be changed without having to mouse-click on theRenaming file...
dialog to focus it manually first.Observed
The
Renaming file...
dialog is unfocused, and the main Godot window is focused behind the dialog.The dialog has to be mouse clicked manually to continue editing the name.
Notes
The behavior in 3.5.x seems better (see the issue description above).
But if the behavior was changed for a specific reason. Then an alternative fix might be to not allow the main Godot window to become focused while a dialog is open.
I can't think of an example at the moment, but I might have seen other applications blink (twice?) the dialogs window (a thick border?) or title bar, when the main window is clicked while a dialog is open.
Possibly to make it more obvious that the open dialog needs to be handled, before the main window can be interacted with, and to make the dialog visible, if, for example, it was moved away to read/see the content behind the dialog.
Minimal reproduction project
issue, renaming file dialog unfocused after alt tab twice.zip