Skip to main content

Type Alias: GtkEventControllerFocusProps

GtkEventControllerFocusProps = EventControllerBaseProps & object

Defined in: generated/jsx.ts:10186

Props for the GtkEventControllerFocus controller element.

Type Declaration

NameTypeDescriptionDefined in
onEnter()?(self) => void | nullEmitted whenever the focus enters into the widget or one of its descendents. Note that this means you may not get an ::enter signal even though the widget becomes the focus location, in certain cases (such as when the focus moves from a descendent of the widget to the widget itself). If you are interested in these cases, you can monitor the EventControllerFocus.is-focus property for changes.generated/jsx.ts:10199
onLeave()?(self) => void | nullEmitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to. Note that this means you may not get a ::leave signal even though the focus moves away from the widget, in certain cases (such as when the focus moves from the widget to a descendent). If you are interested in these cases, you can monitor the EventControllerFocus.is-focus property for changes.generated/jsx.ts:10211
ref?Ref<Gtk.EventControllerFocus>-generated/jsx.ts:10212