KeyboardEvent
Extends: Event
See: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
- KeyboardEvent
- new KeyboardEvent(type, eventInit)
- .altKey
- .ctrlKey
- .metaKey
- .shiftKey
- .code
- .keyCode
- .key
- .location
- .repeat
- .type
- .isTrusted :
boolean
- .target :
Node
- .currentTarget :
Node
- .bubbles :
boolean
- .cancelable :
boolean
- .eventPhase
- .defaultPrevented :
boolean
- .returnValue :
*
- .getModifierState(keyArgs)
- .preventDefault()
- .stopImmediatePropagation()
- .stopPropagation()
new KeyboardEvent(type, eventInit)
Creates an instance of KeyboardEvent.
Param | Type |
---|---|
type | * |
eventInit | * |
keyboardEvent.altKey
Read only
keyboardEvent.ctrlKey
Read only
keyboardEvent.metaKey
Read only
keyboardEvent.shiftKey
Read only
keyboardEvent.code
Read only
keyboardEvent.keyCode
Read only
keyboardEvent.key
Read only
keyboardEvent.location
Read only
keyboardEvent.repeat
Read only
keyboardEvent.type
Read only
keyboardEvent.isTrusted : boolean
Read only
keyboardEvent.target : Node
Read only
keyboardEvent.currentTarget : Node
Read only
keyboardEvent.bubbles : boolean
Read only
keyboardEvent.cancelable : boolean
Read only
keyboardEvent.eventPhase
Read only
keyboardEvent.defaultPrevented : boolean
Read only
keyboardEvent.returnValue : *
keyboardEvent.getModifierState(keyArgs)
Param | Type |
---|---|
keyArgs | string |