sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Pressing editor Play button doesn't focus Game view after interacting with inspector textbox

Open ryleigh opened this issue 2 months ago • 6 comments

Branch

staging

Describe the bug

Hitting the Play button feels inconsistent as it often doesn't focus the Game view.

The cause seems to be hitting Play after clicking an inspector text box (though it doesn't happen every time - the same text box sometimes doesn't cause the problem on subsequent times). Adjusting the value of an inspector text field does have 100% repro rate though.

To Reproduce

  • have Game view and Scene view as tabs in the same dock (only scene view visible)
  • hit Play button and Game view is focused as expected
  • click on an inspector text box of any object in any scene
  • hit Play, and the game will start but Game view won't get focused

https://github.com/user-attachments/assets/bd1ec0b6-10a7-4668-a65c-b0cacab66d4e

It happens most often to me when making changes to a prefab and wanting to run the game again, but needing to hit the Play button twice to see the Game view.

https://github.com/user-attachments/assets/cfaa28a4-f013-421f-b72a-36af6daf16a2

Expected behavior

Hitting the Play button should always focus the Game view.

Media/Files

No response

Additional context

No response

ryleigh avatar Oct 17 '25 03:10 ryleigh

Issue is now apparent on live.

Additionally, I've noticed other parts of the editor not focusing properly, such as these 'popped-out' menus, not accepting keyboard input, and simply changing my selected editor tool when I use a number key.

https://github.com/user-attachments/assets/6272e6f0-8539-401d-b2ab-1de70dacc13e

Muparadzi avatar Nov 14 '25 12:11 Muparadzi

bump

Kaikenny avatar Nov 15 '25 02:11 Kaikenny

If it's any help to anyone, I was facing a similar issue where input would work up until the point I hit play, then nothing. Turn off discord overlay.

Matt9440 avatar Nov 15 '25 15:11 Matt9440

Disabling steam overlay also worked for me.

novodias avatar Nov 15 '25 15:11 novodias

Disabling discord overlay fixed this for me

canoom avatar Nov 15 '25 17:11 canoom

https://github.com/godotengine/godot/issues/112765

handsomematt avatar Nov 15 '25 19:11 handsomematt