KeyboardEvent class - dart:html library (original) (raw)
An event that describes user interaction with the keyboard.
The type of the event identifies what kind of interaction occurred.
See also:
- KeyboardEvent at MDN.
Inheritance
Implementers
Annotations
- @Native("KeyboardEvent")
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
no setter
no setterinherited
cancelable → bool?
no setterinherited
no setter
no setter
no setterinherited
no setter
no setterinherited
no setterinherited
no setterinherited
no setterinherited
The hash code for this object.
no setterinherited
isComposing → bool?
no setter
no setterinherited
no setter
no setter
no setter
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
no setter
path → List<EventTarget>
no setterinherited
no setter
A representation of the runtime type of the object.
no setterinherited
no setter
sourceCapabilities → InputDeviceCapabilities?
no setterinherited
no setterinherited
no setterinherited
no setterinherited
view → WindowBase?
no setterinherited
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
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