LmnKeyboardNavigationService
Decorators: |
|
Implements: |
|
Service to manage the keyboard navigation detection.
It automatically toggles the accessibility classes to manage the keyboard navigation layout when the user interact with the page using the keyboard or the mouse.
Is also possible to force the activation/deactivation of the keyboard navigation state manually.
Properties
Name | Type | Description |
---|---|---|
#keyEventFn | () => void |
|
#unlistenKeydown | (() => void) | undefined |
|
changes$ r |
| Observable that emits the keyboard navigation state. It emits true when the keyboard navigation is active, false otherwise. |
Example usage
| ||
keyboardNavigationActive r |
| Signal that emits the keyboard navigation state. It emits true when the keyboard navigation is active, false otherwise. |
Example usage
|
Accessors
get isKeyboardNavigationActive |
---|
Return the keyboard navigation state. |
Presentation
|
Type
|
Methods
activateKeyboardNavigation() |
---|
Activate the keyboard navigation state. Add the accessibility classes needed to manage the keyboard navigation layout. |
Presentation
|
Returnsvoid |
Example usage
|
deactivateKeyboardNavigation() |
---|
Deactivate the keyboard navigation state. Remove the accessibility classes needed to manage the keyboard navigation layout. |
Presentation
|
Returnsvoid |
Example usage
|