Widget.hasFocus

Determines if the widget has the global input focus.

See [method@Gtk.Widget.is_focus] for the difference between having the global input focus, and only having the focus within a toplevel.

class Widget
bool
hasFocus
()

Return Value

Type: bool

%TRUE if the widget has the global input focus.

Meta