KeyboardEvent class

An event that describes user interaction with the keyboard.

The type of the event identifies what kind of interaction occurred.

See also:

Inheritance
Implementers

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})
Programmatically create a KeyboardEvent.
factory

Properties

altKey bool
no setter
bubbles bool?
no setterinherited
cancelable bool?
no setterinherited
charCode int
no setter
code String?
no setter
composed bool?
no setterinherited
ctrlKey bool
no setter
currentTarget EventTarget?
no setterinherited
defaultPrevented bool
no setterinherited
detail int?
no setterinherited
eventPhase int
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isComposing bool?
no setter
isTrusted bool?
no setterinherited
key String?
no setter
keyCode int
no setter
location int
no setter
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.
no setterinherited
metaKey bool
no setter
path List<EventTarget>
no setterinherited
repeat bool?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shiftKey bool
no setter
sourceCapabilities InputDeviceCapabilities?
no setterinherited
target EventTarget?
no setterinherited
timeStamp num?
no setterinherited
type String
no setterinherited
view WindowBase?
no setterinherited
which int?
no setter

Methods

composedPath() List<EventTarget>
inherited
getModifierState(String keyArg) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void
inherited
stopImmediatePropagation() → void
inherited
stopPropagation() → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

DOM_KEY_LOCATION_LEFT → const int
DOM_KEY_LOCATION_NUMPAD → const int
DOM_KEY_LOCATION_RIGHT → const int
DOM_KEY_LOCATION_STANDARD → const int