Game debug window won't hold focus

Godot Version

4.6

Question

Hi!
I am new to godot and I’m running into an issue with the game debug window. I’ve been working through the squash the creeps tutorial, but when I launch the game to check if the inputs are working, the window won’t hold focus. I press on the arrow keys and they only register on the editor behind the debug window, even if I try to click back into the game. I’ve found a couple threads talking about this exact same issue, but no solutions. Is there a fix for this? A setting I can turn on or off? I tried deleting all editor shortcuts for the arrow keys/WASD but it’s no use, the game still loses focus as soon as I press a key.

Does anyone know a solution for this?

Thanks!

What OS and Godot version are you using? Also, have you tried the official demo to see if the same issue occurs there? Finally, are you running the project in Windowed, Fullscreen, Embedded, or Floating mode, and are there specific UI elements in the scene?

I am on windows 11 Godot version 4.6, although initially it was occurring on version 4.1 as well so I downloaded the newer version. I am working my way through this tutorial:

and am at the step where you test the player input.

I am pressing f6 to run the game, which opens it in a window, but it also has this issue when I full screen it.

What do you mean by official demo?

Thanks!

I mean a fully finished version of the game that is accessible via the Asset Store or GitHub, along with the rest of the demo project. It might be worth trying another demo to isolate the issue and see if it persists across projects or if it’s specific to this one.

Oh that is helpful, thank you! It does appear to be working with the demo so maybe I have my input mapping wrong or something? I put print statements in the movement code but nothing shows up when I press the keys. Is there a common mistake that people make that causes this?

I also messed with some settings and the window appears to be holding focus now, but the inputs are not being registered.

Thanks!

Without a screenshot of your scene, input map, and script, it’s pretty hard to tell what’s wrong.

Are there any error message in the editor output or the debugger output window?

Some errors in your project just show up the these output panels, other errors stop the game from running and bring the editor window to the front.

Either way it is important that your project has no errors.