tinky / FocusManager
Focus management control methods.
disableFocus: () =>
void
Disable focus management for all components. The currently active component (if there's one) will lose its focus.
void
enableFocus: () =>
void
Enable focus management for all components.
void
focus: (
id) =>void
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.
string
void
focusNext: () =>
void
Switch focus to the next focusable component. If there's no active component, focus is given to the first. If active is last, focus wraps.
void
focusPrevious: () =>
void
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 the active component is the first in the list of focusable components, focus will be switched to the last focusable component.
void