hasFocus

open fun hasFocus(): Boolean

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.

Return

true if the widget has the global input focus.