Expand description
Keyboard focus properties, tab_index, focusable,
on_focus, is_focused and more.
Structs§
- Focusable
Mix mFocusable widget mixin. Enables keyboard focusing on the widget and adds a focused highlight visual.
Enums§
- Focus
Click Behavior - Behavior of a widget when a click event is send to it or a descendant.
Statics§
- FOCUS_
HIGHLIGHT_ OFFSETS_ VAR - Padding offsets of the foreground highlight when the widget is focused.
- FOCUS_
HIGHLIGHT_ SIDES_ VAR - Border sides of the foreground highlight when the widget is focused.
- FOCUS_
HIGHLIGHT_ WIDTHS_ VAR - Border widths of the foreground highlight when the widget is focused.
Functions§
- alt_
focus_ scope PWidget is the ALT focus scope.- directional_
nav PKeyboard arrows navigation within this focus scope.- focus_
click_ behavior PBehavior of a widget when a click event is send to it or a descendant.- focus_
highlight PSets the foreground highlight values used when the widget is focused and highlighted.- focus_
on_ init PIf the widget is focused on info init.- focus_
scope PMakes the widget into a focus scope when set totrue.- focus_
scope_ behavior PBehavior of a focus scope when it receives direct focus.- focus_
shortcut PKeyboard shortcuts that focus this widget or its first focusable descendant or its first focusable parent.- focusable
PMakes the widget focusable when set totrue.- is_
focus_ within PIf the widget or one of its descendants has keyboard focus.- is_
focus_ within_ hgl PIf the widget or one of its descendants has keyboard focus and the user is using the keyboard to navigate.- is_
focused PIf the widget has keyboard focus.- is_
focused_ hgl PIf the widget has keyboard focus and the user is using the keyboard to navigate.- is_
return_ focus PIf the widget will be focused when a parent scope is focused.- is_
return_ focus_ within PIf the widget or one of its descendants will be focused when a focus scope is focused.- on_blur
PWidget lost direct keyboard focus.- on_
focus PWidget got direct keyboard focus.- on_
focus_ changed PFocus changed in the widget or its descendants.- on_
focus_ enter PWidget or one of its descendants got focus.- on_
focus_ leave PWidget or one of its descendants lost focus.- on_
pre_ blur PPreviewon_blurevent.- on_
pre_ focus PPreviewon_focusevent.- on_
pre_ focus_ changed PPreviewon_focus_changedevent.- on_
pre_ focus_ enter PPreviewon_focus_enterevent.- on_
pre_ focus_ leave PPreviewon_focus_leaveevent.- return_
focus_ on_ deinit PIf the widget return focus to the previous focus when it inited.- skip_
directional PIf directional navigation from outside this widget skips over it and its descendants.- tab_
index PCustomizes the widget order during TAB navigation.- tab_nav
PTab navigation within this focus scope.