* Initializes the component.
()
| 63 | * Initializes the component. |
| 64 | */ |
| 65 | function init(): void { |
| 66 | const { keyboard } = options; |
| 67 | |
| 68 | if ( keyboard ) { |
| 69 | target = keyboard === 'global' ? window : root; |
| 70 | bind( target, KEYBOARD_EVENT, onKeydown ); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Destroys the component. |