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:

Inheritance

Implementers

Annotations

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

altKeybool

no setter

bubblesbool?

no setterinherited

cancelablebool?

no setterinherited

charCodeint

no setter

codeString?

no setter

composedbool?

no setterinherited

ctrlKeybool

no setter

currentTargetEventTarget?

no setterinherited

defaultPreventedbool

no setterinherited

detailint?

no setterinherited

eventPhaseint

no setterinherited

hashCodeint

The hash code for this object.

no setterinherited

isComposingbool?

no setter

isTrustedbool?

no setterinherited

keyString?

no setter

keyCodeint

no setter

locationint

no setter

matchingTargetElement

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

metaKeybool

no setter

pathList<EventTarget>

no setterinherited

repeatbool?

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

shiftKeybool

no setter

sourceCapabilitiesInputDeviceCapabilities?

no setterinherited

targetEventTarget?

no setterinherited

timeStampnum?

no setterinherited

typeString

no setterinherited

viewWindowBase?

no setterinherited

whichint?

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