class
KeyboardEvent

(Not documented.)

Annotations
  • DomName('KeyboardEvent')
Extends
Implemented by

Constants

int DOM_KEY_LOCATION_LEFT = 0x01
const
int DOM_KEY_LOCATION_NUMPAD = 0x03
const
int DOM_KEY_LOCATION_RIGHT = 0x02
const
int DOM_KEY_LOCATION_STANDARD = 0x00
const

Properties

int keyCode
read-only
int charCode
read-only
bool altKey
read-only
bool ctrlKey
read-only
int keyLocation
read-only
int location
read-only
bool metaKey
read-only
bool repeat
read-only
bool shiftKey
read-only
Element matchingTarget
read-only , inherited
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].
bool bubbles
read-only , inherited
bool cancelable
read-only , inherited
DataTransfer clipboardData
read-only , inherited
Access to the system's clipboard data during copy, cut, and paste events.
EventTarget currentTarget
read-only , inherited
bool defaultPrevented
read-only , inherited
int eventPhase
read-only , inherited
List<Node> path
read-only , inherited
This event's path, taking into account shadow DOM.
EventTarget target
read-only , inherited
int timeStamp
read-only , inherited
String type
read-only , inherited
int detail
read-only , inherited
WindowBase view
read-only , inherited
int which
read-only , inherited
Point layer
read-only , inherited
Point page
read-only , inherited

Constructors

KeyboardEvent(String type, {Window view, bool canBubble: true, bool cancelable: true, int keyLocation: 1, bool ctrlKey: false, bool altKey: false, bool shiftKey: false, bool metaKey: false})

Methods

getModifierState(String keyArgument) → bool
preventDefault() → void
inherited
stopImmediatePropagation() → void
inherited
stopPropagation() → void
inherited