C

KeyEventArgs

A wrapper for the native keyboard event which abstracts away incompatibilities in browser implementations.
Inheritance Hierarchy

Members

No filters for this type

Constructors

Creates a new instance of this class from a native keyboard event.

Parameters

evt: KeyboardEvent
The native keyboard event.
type: KeyEventType
The type of the event.

Properties

Gets a value indicating whether the alt modifier is pressed.
readonlyfinal

Property Value

true if the alt modifier is pressed; otherwise, false.
Gets a value indicating whether the control modifier is pressed.
readonlyfinal

Property Value

true if the control modifier is pressed; otherwise, false.
Gets a value indicating whether the default behaviors for this event have been prevented by a previous call to preventDefault.
readonlyfinal

Property Value

true if preventDefault had been called; otherwise, false.
Gets the type of the event.
readonlyfinal
Gets the key.
The value of a key corresponds to KeyboardEvent.key.
readonlyfinal
Gets a value indicating whether the meta modifier is pressed.
readonlyfinal

Property Value

true if the meta modifier is pressed; otherwise, false.
Gets the modifiers.
readonlyfinal
Gets the original DOM event associated with this event.
readonlyfinal

Property Value

The original DOM event.
Gets a value indicating whether the shift modifier is pressed.
readonlyfinal

Property Value

true if the shift modifier is pressed; otherwise, false.

Methods

Sets this event's defaultPrevented property to true signalling that the event has been properly handled and any default behaviors should be prevented.
This will call the corresponding method on the original native event.
final

See Also

API
defaultPrevented