A wrapper for the native keyboard event which abstracts away incompatibilities in browser implementations.
Inheritance Hierarchy
EventArgs
KeyEventArgs
Type Details
- yFiles module
- view
Constructors
Creates a new instance of this class from a native keyboard event.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- evt - KeyboardEvent
- The native keyboard event.
- type - KeyEventType
- The type of the event.
Properties
Gets a value indicating whether the default behaviors for this event have been prevented by a previous call to preventDefault.
Property Value
Gets the type of the event.
Gets the key.
Remarks
The value of a key corresponds to KeyboardEvent.key.
Gets the modifiers.
Methods
Sets this event's defaultPrevented property to true
signalling that the event has been properly handled and any default behaviors should be prevented.