Failing to grab focus on child TabBars and Popups

Godot Version

4.2.1

Question

Let’s start with the TabBars. I have a tab in a tab that I want to use the grab_focus() method, but it never works. Here is an example of what I am doing:

keyboard_tab.grab_focus()

With Popups, I want to grab the close button by default and modify its neighbors within the window.

Please let me know if you have any questions!

I figured it out! Instead of trying to access the TabBar, just Access the container and access the tab_bar.

tab_container.get_tab_bar().grab_focus()
2 Likes

Good to know, i haven’t worked with tabs much, so I’ll pocket this for myself! :wink: