description

# 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.

Inheritance
  - Object
  - Event
  - UIEvent
  - KeyboardEvent
Implementers
  - KeyEvent
Annotations
  - @Native.new("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

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