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

Constants

DOM_KEY_LOCATION_LEFT int

@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_LEFT'), @Experimental()
0x01
DOM_KEY_LOCATION_NUMPAD int

@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_NUMPAD'), @Experimental()
0x03
DOM_KEY_LOCATION_RIGHT int

@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_RIGHT'), @Experimental()
0x02
DOM_KEY_LOCATION_STANDARD int

@DocsEditable(), @DomName('KeyboardEvent.DOM_KEY_LOCATION_STANDARD'), @Experimental()
0x00

Static Properties

instanceRuntimeType Type

@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

altKey bool

@DocsEditable(), @DomName('KeyboardEvent.altKey'), read-only
charCode int

@DomName('KeyboardEvent.charCode'), read-only
code String

@DocsEditable(), @DomName('KeyboardEvent.code'), @Experimental(), read-only
ctrlKey bool

@DocsEditable(), @DomName('KeyboardEvent.ctrlKey'), read-only
key String

@DocsEditable(), @DomName('KeyboardEvent.key'), @Experimental(), read-only
keyCode int

@DomName('KeyboardEvent.keyCode'), read-only
location int

@DocsEditable(), @DomName('KeyboardEvent.location'), @Experimental(), read-only
metaKey bool

@DocsEditable(), @DomName('KeyboardEvent.metaKey'), read-only
repeat bool

@DocsEditable(), @DomName('KeyboardEvent.repeat'), @Experimental(), read-only
shiftKey bool

@DocsEditable(), @DomName('KeyboardEvent.shiftKey'), read-only
which int

@DomName('KeyboardEvent.which'), read-only
bubbles bool

@DocsEditable(), @DomName('Event.bubbles'), read-only, inherited
cancelable bool

@DocsEditable(), @DomName('Event.cancelable'), read-only, inherited
currentTarget EventTarget

@DocsEditable(), @DomName('Event.currentTarget'), read-only, inherited
defaultPrevented bool

@DocsEditable(), @DomName('Event.defaultPrevented'), read-only, inherited
detail int

@DocsEditable(), @DomName('UIEvent.detail'), read-only, inherited
eventPhase int

@DocsEditable(), @DomName('Event.eventPhase'), read-only, inherited
hashCode int

read-only, inherited
isTrusted bool

@DocsEditable(), @DomName('Event.isTrusted'), @Experimental(), read-only, inherited
matchingTarget Element

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.

read-only, inherited
path List<EventTarget>

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

@DocsEditable(), @DomName('Event.path'), @Experimental(), read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
scoped bool

@DocsEditable(), @DomName('Event.scoped'), @Experimental(), read-only, inherited
sourceCapabilities InputDeviceCapabilities

@DocsEditable(), @DomName('UIEvent.sourceCapabilities'), @Experimental(), read-only, inherited
target EventTarget

@DocsEditable(), @DomName('Event.target'), read-only, inherited
timeStamp num

@DocsEditable(), @DomName('Event.timeStamp'), read-only, inherited
type String

@DocsEditable(), @DomName('Event.type'), read-only, inherited
view WindowBase

@DocsEditable(), @DomName('UIEvent.view'), read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

getModifierState(String keyArg) bool

@DocsEditable(), @DomName('KeyboardEvent.getModifierState'), @Experimental()
deepPath() List<EventTarget>

@DocsEditable(), @DomName('Event.deepPath'), @Experimental(), inherited
noSuchMethod(Invocation invocation) → dynamic

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

inherited
preventDefault() → void

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

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

@DocsEditable(), @DomName('Event.stopPropagation'), inherited
toString() String

Returns the result of the JavaScript objects toString method.

inherited