How to grab focus on AdwTab for selected TabView item?

I want move out focus from search Entry (in browser) to any focusable widget,
in my case - it’s AdwTabBar.

Is any method for access AdwTab object selected with API?

image

Focus the tab bar itself, it focuses the selected tab automatically

1 Like

Really, thanks much!

Now I think how to navigate there as TabBar placed in another widgets hierarchy :slight_smile:

Just interesting, is it possible to have active GtkWindow but without any focused widget (e.g. drop focus from everywhere)

Hi,

You can use Gtk.Widget.child_focus on the entry for that.

Yes, call Gtk.Window.set_focus with NULL as target widget.

1 Like