SyntheticKeyboardEvent class

Inheritance
Available Extensions
Annotations
  • @JS()

Properties

altKey bool
Whether the Alt (Option or on OS X) key was active when this event was generated.
no setter
bubbles bool
Indicates whether the Event bubbles up through the DOM or not.
no setterinherited
cancelable bool
Indicates whether the Event is cancelable or not.
no setterinherited
char String
The character value of the key.
no setter
charCode num
The Unicode reference number of the key; this attribute is used only by the keypress event.
no setter
ctrlKey bool
Whether the Ctrl key was active when this was generated.
no setter
currentTarget → dynamic
Identifies the current target for the event, as the Event traverses the DOM.
no setterinherited
defaultPrevented bool
Indicates whether or not preventDefault was called on the event.
no setterinherited
eventPhase num
Indicates which phase of the Event flow is currently being evaluated.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isTrusted bool
Is true when the Event was generated by a user action, and false when the Event was created or modified by a script or dispatched via EventTarget.dispatchEvent.
no setterinherited
key String
The key value of the key represented by this event.
no setter
keyCode num
A system and implementation dependent numerical code identifying the unmodified value of the pressed key.
no setter
locale String
A locale string indicating the locale the keyboard is configured for.
no setter
location num
The location of the key on the keyboard or other input device.
no setter
metaKey bool
Whether the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key ()) was active when the key event was generated.
no setter
nativeEvent → dynamic
The native browser event this wraps.
no setterinherited
repeat bool
Whether the key is being held down such that it is automatically repeating.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shiftKey bool
Whether the Shift key was active when the this event was generated.
no setter
stopPropagation → dynamic
Prevents further propagation of the current event.
no setterinherited
target → dynamic
A reference to the object that dispatched the event. It is different from currentTarget when the Event handler is called when eventPhase is Event.BUBBLING_PHASE or Event.CAPTURING_PHASE.
no setterinherited
timeStamp num
Returns the time (in milliseconds) at which the Event was created.
no setterinherited
type String
Returns a string containing the type of event. It is set when the Event is constructed and is the name commonly used to refer to the specific event.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void
Cancels the Event if it is cancelable, without stopping further propagation of the event.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited