Spec-Zone.ru › Dart 2

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:

  • KeyboardEvent at MDN.
Inheritance
  • Object
  • Event
  • UIEvent
  • KeyboardEvent
Implementers
  • KeyEvent
Annotations
  • @Native("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})
factory
Programmatically create a KeyboardEvent.

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
read-onlyinherited
The hash code for this object.
isComposing → bool?
read-only
isTrusted → bool?
read-onlyinherited
key → String?
read-only
keyCode → int
read-only
location → int
read-only
matchingTarget → Element
read-onlyinherited
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.
metaKey → bool
read-only
path → List<EventTarget>
read-onlyinherited
repeat → bool?
read-only
runtimeType → Type
read-onlyinherited
A representation of the runtime type of the object.
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
inherited
Invoked when a non-existent method or property is accessed.
preventDefault() → void
inherited
stopImmediatePropagation() → void
inherited
stopPropagation() → void
inherited
toString() → String
inherited
A string representation of this object.

Operators

operator ==(Object 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

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/KeyboardEvent-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API