godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.3k stars 21.06k forks source link

Saving a scene with CTRL+ S while a floating script editor is focused changes focus to the main editor window #79294

Closed xxSeys1 closed 1 year ago

xxSeys1 commented 1 year ago

Godot version

v4.1.stable.official [970459615]

System information

Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 31.0.21001.45002) - AMD Ryzen 9 5900X 12-Core Processor (24 Threads)

Issue description

When saving a scene with CTRL + S with a floating script editor window is focussed, the focus gets changed to the main editor window. This also means that all keyboard inputs made after saving will be broadcasted to the main editor rather then the script editor. (Please note that there has to be a scene open that can be saved, if it's a script that gets saved then the issue does not happen)

I don't know if that is a bug or something "indended", but either way its bad because you have to re- focus the script editor window eacht time after you save.

Steps to reproduce

1.) Create a Scene and open it 2.) Create a script on a node in the scene 3.) Open the script 3.) Make the script editor floating 4.) Press CTRL + S to save --> The script editor looses focus

Minimal reproduction project

ScriptEditorUnfocusMinRepProject.zip

1.) Open OPEN_ME__Scene.tscn 2.) Open the script of Open my script --> 3.) Make the script editor floating 4.) Press CTRL + S to save

akien-mga commented 1 year ago