Merge pull request #8400 from electron/keyboardevent-link

Switch to footer link syntax for keyboard event docs
This commit is contained in:
Kevin Sawicki 2017-01-13 09:09:44 -08:00 committed by GitHub
commit f7d3dc742d

View file

@ -239,12 +239,12 @@ Returns:
* `event` Event
* `input` Object - Input properties
* `type` String - Either `keyUp` or `keyDown`
* `key` String - Equivalent to [KeyboardEvent.key](keyboardevent)
* `isAutoRepeat` Boolean - Equivalent to [KeyboardEvent.repeat](keyboardevent)
* `shift` Boolean - Equivalent to [KeyboardEvent.shiftKey](keyboardevent)
* `control` Boolean - Equivalent to [KeyboardEvent.controlKey](keyboardevent)
* `alt` Boolean - Equivalent to [KeyboardEvent.altKey](keyboardevent)
* `meta` Boolean - Equivalent to [KeyboardEvent.metaKey](keyboardevent)
* `key` String - Equivalent to [KeyboardEvent.key][keyboardevent]
* `isAutoRepeat` Boolean - Equivalent to [KeyboardEvent.repeat][keyboardevent]
* `shift` Boolean - Equivalent to [KeyboardEvent.shiftKey][keyboardevent]
* `control` Boolean - Equivalent to [KeyboardEvent.controlKey][keyboardevent]
* `alt` Boolean - Equivalent to [KeyboardEvent.altKey][keyboardevent]
* `meta` Boolean - Equivalent to [KeyboardEvent.metaKey][keyboardevent]
Emitted before dispatching the `keydown` and `keyup` events in the page.
Calling `event.preventDefault` will prevent the page `keydown`/`keyup` events