feat: expose location and modifiers on before-input-event (#29850)
* feat: expose location and modifiers on before-input-event * lint
This commit is contained in:
parent
1897b14af3
commit
4d0475c9ce
4 changed files with 84 additions and 19 deletions
|
@ -449,6 +449,8 @@ Returns:
|
|||
* `control` Boolean - Equivalent to [KeyboardEvent.controlKey][keyboardevent].
|
||||
* `alt` Boolean - Equivalent to [KeyboardEvent.altKey][keyboardevent].
|
||||
* `meta` Boolean - Equivalent to [KeyboardEvent.metaKey][keyboardevent].
|
||||
* `location` Number - Equivalent to [KeyboardEvent.location][keyboardevent].
|
||||
* `modifiers` String[] - See [InputEvent.modifiers](structures/input-event.md).
|
||||
|
||||
Emitted before dispatching the `keydown` and `keyup` events in the page.
|
||||
Calling `event.preventDefault` will prevent the page `keydown`/`keyup` events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue