- addKeyListener<K>(element, keysOrKeyCodes, action, ...additionalEventTypes): Disposable
Type Parameters
- K extends keyof HTMLElementEventMap
Parameters
- element: HTMLElement
- keysOrKeyCodes: KeysOrKeyCodes | core.Predicate
- action: ((event) => boolean | void | Object)
- (event): boolean | void | Object
Returns boolean | void | Object
Rest
...additionalEventTypes: K[]