I have an inventory system, where upon loading, it will create a control node for every item in the player's possession.
After creating all the nodes, unless there is no items, it will try to grab focus.
get_child(0).grab_focus()
When the inventory is closed, the main panel is hidden with visible = false
All child control nodes are removed with queue_free()
Opening the inventory again does not cause the focus to be set.
I have 2 different inventory panels, both works only the first time.
I'm not really sure where to start troubleshooting..