OptionButton focus is broken with controller usage

Godot Version

4.4-stable

Question

Focusing the dropdown options in an OptionButton causes the focus to go elsewhere

Is this an engine bug? Or am I doing something wrong? There nothing strange about my implementation of the OptionButton. There’s no other grab_focus() calls happening while I am selecting an option for the OptionButton

Not sure what version of Godot you’re using specifically, but I can’t replicate this on 4.4.1. I mapped a button on the controller (xbox a) to ui_select because i don’t think there’s a default mapping for it.

I’m using 4.4-stable. I don’t remember specifically setting up a binding for ui_select, but I have one in my project:
image

In my video above I was only using the d-pad. Not using the ui_select.

Were you using the d-pad or analog to navigate on screen?

both the d-pad and stick work fine for me.

Godot 4 is the major version of godot, 4.4 is the minor version of godot, the patch version is 4.4.1. I’m not sure if anything was changed on the controller front in 4.4.1 though

Not sure what you mean re: version, I am using 4.4-stable (the original release, no patch)
image

Anyways- thank you for helping me look into it. I will branch and try to upgrade Godot to see if that fixes it. This is possibly the last bug for implement controller support so it was a bit annoying lol.

Upgrading to 4.4.1 did not fix it. Still investigating

This workaround fixed it for me, in case it helps anyone else.

The item will automatically be selected when you focus on the option item. It also grabs the focus on the option button itself.

Hacky, but isn’t presenting any issues currently

1 Like