KeyboardEvent class

Inheritance
Implemented by
Annotations
  • @DomName('KeyboardEvent')

Constants

DOM_KEY_LOCATION_LEFTint
@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_LEFT'), @Experimental()
0x01
DOM_KEY_LOCATION_NUMPADint
@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_NUMPAD'), @Experimental()
0x03
DOM_KEY_LOCATION_RIGHTint
@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_RIGHT'), @Experimental()
0x02
DOM_KEY_LOCATION_STANDARDint
@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_STANDARD'), @Experimental()
0x00

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

KeyboardEvent(String type, { Window view, bool canBubble: true, bool cancelable: true, int location, int keyLocation, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false })
factory
KeyboardEvent.internal_()

Properties

altKeybool
@DocsEditable(), @DomName('KeyboardEvent.altKey'), read-only
charCodeint
@DomName('KeyboardEvent.charCode'), read-only
codeString
@DocsEditable(), @DomName('KeyboardEvent.code'), @Experimental(), read-only
ctrlKeybool
@DocsEditable(), @DomName('KeyboardEvent.ctrlKey'), read-only
keyString
@DocsEditable(), @DomName('KeyboardEvent.key'), @Experimental(), read-only
keyCodeint
@DomName('KeyboardEvent.keyCode'), read-only
locationint
@DocsEditable(), @DomName('KeyboardEvent.location'), @Experimental(), read-only
metaKeybool
@DocsEditable(), @DomName('KeyboardEvent.metaKey'), read-only
repeatbool
@DocsEditable(), @DomName('KeyboardEvent.repeat'), @Experimental(), read-only
shiftKeybool
@DocsEditable(), @DomName('KeyboardEvent.shiftKey'), read-only
whichint
@DomName('KeyboardEvent.which'), read-only
bubblesbool
@DocsEditable(), @DomName('Event.bubbles'), read-only, inherited
cancelablebool
@DocsEditable(), @DomName('Event.cancelable'), read-only, inherited
currentTargetEventTarget
@DocsEditable(), @DomName('Event.currentTarget'), read-only, inherited
defaultPreventedbool
@DocsEditable(), @DomName('Event.defaultPrevented'), read-only, inherited
detailint
@DocsEditable(), @DomName('UIEvent.detail'), read-only, inherited
eventPhaseint
@DocsEditable(), @DomName('Event.eventPhase'), read-only, inherited
hashCodeint
read-only, inherited
isTrustedbool
@DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), read-only, inherited
matchingTargetElement
read-only, inherited

A pointer to the element whose CSS selector matched within which an event was fired. If this Event was not associated with any Event delegation, accessing this value will throw an UnsupportedError.

pathList<EventTarget>
@DocsEditable(), @DomName('Event.path'), @Experimental(), read-only, inherited

This event's path, taking into account shadow DOM.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

scopedbool
@DocsEditable(), @DomName('Event.scoped'), @Experimental(), read-only, inherited
sourceCapabilitiesInputDeviceCapabilities
@DocsEditable(), @DomName('UIEvent.sourceCapabilities'), @Experimental(), read-only, inherited
targetEventTarget
@DocsEditable(), @DomName('Event.target'), read-only, inherited
timeStampnum
@DocsEditable(), @DomName('Event.timeStamp'), read-only, inherited
typeString
@DocsEditable(), @DomName('Event.type'), read-only, inherited
viewWindowBase
@DocsEditable(), @DomName('UIEvent.view'), read-only, inherited

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

getModifierState(String keyArg) → bool
@DocsEditable(), @DomName('KeyboardEvent.getModifierState'), @Experimental()
deepPath() → List<EventTarget>
@DocsEditable(), @DomName('Event.deepPath'), @Experimental(), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

preventDefault() → void
@DocsEditable(), @DomName('Event.preventDefault'), inherited
stopImmediatePropagation() → void
@DocsEditable(), @DomName('Event.stopImmediatePropagation'), inherited
stopPropagation() → void
@DocsEditable(), @DomName('Event.stopPropagation'), inherited
toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/KeyboardEvent-class.html