KeyboardEvent class
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.
Constructors
Properties
- altKey → bool
-
read-only
- bubbles → bool?
-
read-onlyinherited
- cancelable → bool?
-
read-onlyinherited
- charCode → int
-
read-only
- code → String?
-
read-only
- composed → bool?
-
read-onlyinherited
- ctrlKey → bool
-
read-only
- currentTarget → EventTarget?
-
read-onlyinherited
- defaultPrevented → bool
-
read-onlyinherited
- detail → int?
-
read-onlyinherited
- eventPhase → int
-
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isComposing → bool?
-
read-only
- isTrusted → bool?
-
read-onlyinherited
- key → String?
-
read-only
- keyCode → int
-
read-only
- location → int
-
read-only
- 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-onlyinherited
- metaKey → bool
-
read-only
-
path
→ List<
EventTarget> -
read-onlyinherited
- repeat → bool?
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shiftKey → bool
-
read-only
- sourceCapabilities → InputDeviceCapabilities?
-
read-onlyinherited
- target → EventTarget?
-
read-onlyinherited
- timeStamp → num?
-
read-onlyinherited
- type → String
-
read-onlyinherited
- view → WindowBase?
-
read-onlyinherited
- which → int?
-
read-only
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
-
0x01
- DOM_KEY_LOCATION_NUMPAD → const int
-
0x03
- DOM_KEY_LOCATION_RIGHT → const int
-
0x02
- DOM_KEY_LOCATION_STANDARD → const int
-
0x00