nx.js
Classes

KeyboardEvent

Extends

Implements

Constructors

new KeyboardEvent()

new KeyboardEvent(type, options?): KeyboardEvent

Parameters

ParameterType
typestring
options?KeyboardEventInit

Returns

KeyboardEvent

Overrides

UIEvent.constructor

Properties

PropertyModifierTypeInherited from
AT_TARGETreadonly2globalThis.KeyboardEvent.AT_TARGET UIEvent.AT_TARGET
BUBBLING_PHASEreadonly3globalThis.KeyboardEvent.BUBBLING_PHASE UIEvent.BUBBLING_PHASE
CAPTURING_PHASEreadonly1globalThis.KeyboardEvent.CAPTURING_PHASE UIEvent.CAPTURING_PHASE
DOM_KEY_LOCATION_LEFTreadonly1-
DOM_KEY_LOCATION_NUMPADreadonly3-
DOM_KEY_LOCATION_RIGHTreadonly2-
DOM_KEY_LOCATION_STANDARDreadonly0-
NONEreadonly0globalThis.KeyboardEvent.NONE UIEvent.NONE
bubblesreadonlybooleanglobalThis.KeyboardEvent.bubbles UIEvent.bubbles
cancelBubblepublicbooleanglobalThis.KeyboardEvent.cancelBubble UIEvent.cancelBubble
cancelablereadonlybooleanglobalThis.KeyboardEvent.cancelable UIEvent.cancelable
charCodereadonlynumber-
composedreadonlybooleanglobalThis.KeyboardEvent.composed UIEvent.composed
currentTargetreadonlynull | EventTargetglobalThis.KeyboardEvent.currentTarget UIEvent.currentTarget
defaultPreventedreadonlybooleanglobalThis.KeyboardEvent.defaultPrevented UIEvent.defaultPrevented
detailreadonlynumberglobalThis.KeyboardEvent.detail UIEvent.detail
eventPhasereadonlynumberglobalThis.KeyboardEvent.eventPhase UIEvent.eventPhase
isComposingreadonlyboolean-
isTrustedreadonlybooleanglobalThis.KeyboardEvent.isTrusted UIEvent.isTrusted
keyCodereadonlynumber-
locationreadonlynumber-
repeatreadonlyboolean-
returnValuepublicbooleanglobalThis.KeyboardEvent.returnValue UIEvent.returnValue
srcElementreadonlynull | EventTargetglobalThis.KeyboardEvent.srcElement UIEvent.srcElement
targetreadonlynull | EventTargetglobalThis.KeyboardEvent.target UIEvent.target
timeStampreadonlynumberglobalThis.KeyboardEvent.timeStamp UIEvent.timeStamp
typereadonlystringglobalThis.KeyboardEvent.type UIEvent.type
viewreadonlynullglobalThis.KeyboardEvent.view UIEvent.view
whichreadonlynumberglobalThis.KeyboardEvent.which UIEvent.which
AT_TARGETreadonly2UIEvent.AT_TARGET
BUBBLING_PHASEreadonly3UIEvent.BUBBLING_PHASE
CAPTURING_PHASEreadonly1UIEvent.CAPTURING_PHASE
NONEreadonly0UIEvent.NONE

Accessors

altKey

get altKey(): boolean

Returns

boolean

Implementation of

globalThis.KeyboardEvent.altKey


code

get code(): string

Returns

string

Implementation of

globalThis.KeyboardEvent.code


ctrlKey

get ctrlKey(): boolean

Returns

boolean

Implementation of

globalThis.KeyboardEvent.ctrlKey


key

get key(): string

Returns

string

Implementation of

globalThis.KeyboardEvent.key


metaKey

get metaKey(): boolean

Returns

boolean

Implementation of

globalThis.KeyboardEvent.metaKey


shiftKey

get shiftKey(): boolean

Returns

boolean

Implementation of

globalThis.KeyboardEvent.shiftKey

Methods

composedPath()

composedPath(): EventTarget[]

Returns

EventTarget[]

Implementation of

globalThis.KeyboardEvent.composedPath

Inherited from

UIEvent.composedPath


getModifierState()

getModifierState(): boolean

Returns

boolean

Implementation of

globalThis.KeyboardEvent.getModifierState


initEvent()

initEvent(type, bubbles?, cancelable?): void

Parameters

ParameterType
typestring
bubbles?boolean
cancelable?boolean

Returns

void

Implementation of

globalThis.KeyboardEvent.initEvent

Inherited from

UIEvent.initEvent


initKeyboardEvent()

initKeyboardEvent(): void

Returns

void

Implementation of

globalThis.KeyboardEvent.initKeyboardEvent


initUIEvent()

initUIEvent(): void

Returns

void

Implementation of

globalThis.KeyboardEvent.initUIEvent

Inherited from

UIEvent.initUIEvent


preventDefault()

preventDefault(): void

Returns

void

Implementation of

globalThis.KeyboardEvent.preventDefault

Inherited from

UIEvent.preventDefault


stopImmediatePropagation()

stopImmediatePropagation(): void

Returns

void

Implementation of

globalThis.KeyboardEvent.stopImmediatePropagation

Inherited from

UIEvent.stopImmediatePropagation


stopPropagation()

stopPropagation(): void

Returns

void

Implementation of

globalThis.KeyboardEvent.stopPropagation

Inherited from

UIEvent.stopPropagation

On this page