Description
Godot version
master (3710f06)
System information
Godot v4.1.beta (3710f06) - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Sat, 10 Jun 2023 00:35:19 +0000 - Vulkan (Forward+) - dedicated AMD Radeon R9 380 Series (RADV TONGA) () - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)
Issue description
Using i3wm, tiling window manager.
If I'm in the floating script window and I hit Ctrl+S to save, the window focus gets switched to the main Godot window.
I'd expect it to stay on the script window instead.
Note: this happens only when the script is associated with a scene. A standalone script does not trigger the focus switch.
Steps to reproduce
Float script window, use ctrl+s to save, see focus returned to main godot editor window.
Following screencap of this exact sequence. I switch focus to the script window, type "pass" and press ctrl+s. and you can see the blue square around the windows showing current focus move back to the main window.
bug-demo.mp4
Minimal reproduction project
You only need a scene with a script attached.