Module zng_wgt_input::focus
source · Expand description
Keyboard focus properties, tab_index
, focusable
,
on_focus
, is_focused
and more.
Structs§
m
Focusable widget mixin. Enables keyboard focusing on the widget and adds a focused highlight visual.
Enums§
- Behavior of a widget when a click event is send to it or a descendant.
Statics§
- Padding offsets of the foreground highlight when the widget is focused.
- Border sides of the foreground highlight when the widget is focused.
- Border widths of the foreground highlight when the widget is focused.
Functions§
P
Widget is the ALT focus scope.P
Keyboard arrows navigation within this focus scope.P
Behavior of a widget when a click event is send to it or a descendant.P
Sets the foreground highlight values used when the widget is focused and highlighted.P
If the widget is focused on info init.P
Makes the widget into a focus scope when set totrue
.P
Behavior of a focus scope when it receives direct focus.P
Keyboard shortcuts that focus this widget or its first focusable descendant or its first focusable parent.P
Makes the widget focusable when set totrue
.P
If the widget or one of its descendants has keyboard focus.P
If the widget or one of its descendants has keyboard focus and the user is using the keyboard to navigate.P
If the widget has keyboard focus.P
If the widget has keyboard focus and the user is using the keyboard to navigate.P
If the widget will be focused when a parent scope is focused.P
If the widget or one of its descendants will be focused when a focus scope is focused.P
Widget lost direct keyboard focus.P
Widget got direct keyboard focus.P
Focus changed in the widget or its descendants.P
Widget or one of its descendants got focus.P
Widget or one of its descendants lost focus.P
Previewon_blur
event.P
Previewon_focus
event.P
Previewon_focus_changed
event.P
Previewon_focus_enter
event.P
Previewon_focus_leave
event.P
If the widget return focus to the previous focus when it inited.P
If directional navigation from outside this widget skips over it and its descendants.P
Customizes the widget order during TAB navigation.P
Tab navigation within this focus scope.