glink/use_focus_manager
Types
pub type Output {
Output(
enable_focus: fn() -> Nil,
disable_focus: fn() -> Nil,
focus_next: fn() -> Nil,
focus_previous: fn() -> Nil,
focus: fn(String) -> Nil,
)
}
Constructors
-
Output( enable_focus: fn() -> Nil, disable_focus: fn() -> Nil, focus_next: fn() -> Nil, focus_previous: fn() -> Nil, focus: fn(String) -> Nil, )
Arguments
- enable_focus
-
Enable focus management for all components.
- disable_focus
-
Disable focus management for all components. Currently active component (if there’s one) will lose its focus.
- focus_next
-
Switch focus to the next focusable component. If there’s no active component right now, focus will be given to the first focusable component. If active component is the last in the list of focusable components, focus will be switched to the first component.
- focus_previous
-
Switch focus to the previous focusable component. If there’s no active component right now, focus will be given to the first focusable component. If active component is the first in the list of focusable components, focus will be switched to the last component.
- focus
-
Switch focus to the element with provided ID. If there’s no element with that ID, focus will be given to the first focusable component.