I have the following code that determine what normal and hover styles to choose from for a buttons state, then will set the styles accordingly. This works in v3.2.3 but now I've upgraded to v3.4.2 it doesn't work, except for mouse hover but I want it to be on button focus too as the game used arrow keys to navigate menus (mouse cursor isn't intended, but still possible)
var button_normal_style = preload("res://ui/styles/button_normal_style.tres")
var button_hover_style = preload("res://ui/styles/button_hover_style.tres")
func _on_MenuButton_focus_entered(button):
var button_normal_style = ...
var button_hover_style = ...
...some checking...
button.set("custom_styles/normal", button_normal_style)
button.set("custom_styles/hover", button_hover_style)
All I get is a very faint default highlighting but the styles should make it more obvious where focus is. Has something changed in more recent versions of Godot for this?