Function keyforward
- keyforward(node, keyTarget): ActionReturn<{
keydown: ((event: KeyboardEvent) => void);
keyup: ((event: KeyboardEvent) => void);
}> Parameters
- node: HTMLElement
Target element.
- keyTarget: {
keydown: ((event: KeyboardEvent) => void);
keyup: ((event: KeyboardEvent) => void);
}An object to forward events key down / up events to as pressed.
keydown: ((event: KeyboardEvent) => void)
- (event): void
Parameters
- event: KeyboardEvent
Returns void
keyup: ((event: KeyboardEvent) => void)
- (event): void
Parameters
- event: KeyboardEvent
Returns void
Returns ActionReturn<{
keydown: ((event: KeyboardEvent) => void);
keyup: ((event: KeyboardEvent) => void);
}>Action lifecycle methods.
- node: HTMLElement
Provides an action to forward on key down & up events. This can be any object that has associated
keydown
andkeyup
methods. See KeyStore for a store implementation.