Gtk.StateFlags.FOCUSED – gtk4 Reference Manual
FOCUSED
Description:
FOCUSED
Widget has the keyboard focus