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.
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
readonlyfinal
Property Value
true if the alt modifier is pressed; otherwise, false.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.
Gets a value indicating whether the default behaviors for this event have been prevented by a previous call to preventDefault.
Gets the type of the event.
Gets the type of the event.
readonlyfinal
The value of a key corresponds to KeyboardEvent.key.
readonlyfinal
readonlyfinal
Property Value
true if the meta modifier is pressed; otherwise, false.Gets the modifiers.
Gets the modifiers.
readonlyfinal
readonlyfinal
Property Value
The original DOM event.
Methods
Sets this event's defaultPrevented property to true signalling that the event has been properly handled and any default behaviors should be prevented.
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