dart:html
KeyboardEvent class
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 })
factory
- Programmatically create a KeyboardEvent. [...]
Properties
- altKey → bool
final
- charCode → int
final
- code → String
final
- ctrlKey → bool
final
- isComposing → bool
final
- key → String
final
- keyCode → int
final
- location → int
final
- metaKey → bool
final
- repeat → bool
final
- shiftKey → bool
final
- which → int
read-only
- bubbles → bool
final, inherited
- cancelable → bool
final, inherited
- composed → bool
final, inherited
- currentTarget → EventTarget
read-only, inherited
- defaultPrevented → bool
final, inherited
- detail → int
final, inherited
- eventPhase → int
final, inherited
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- isTrusted → bool
final, inherited
- matchingTarget → Element
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.
- path → List<EventTarget>
read-only, inherited
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
- sourceCapabilities → InputDeviceCapabilities
final, inherited
- target → EventTarget
read-only, inherited
- timeStamp → num
final, inherited
- type → String
final, inherited
- view → WindowBase
read-only, inherited
Methods
- getModifierState(String keyArg) → bool
- composedPath() → List<EventTarget>
inherited
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed. [...]
- preventDefault() → void
inherited
- stopImmediatePropagation() → void
inherited
- stopPropagation() → void
inherited
- toString() → String
inherited
- Returns a string representation of this object.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]
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