A wrapper for the native keyboard event which abstracts away incompatibilities in browser implementations.
Inheritance Hierarchy
EventArgs
KeyEventArgs
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.KeyEventArgs
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.
- isPrintable - boolean
- if set to
true
[is printable]. - 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.
Gets the type of the event.
Gets the 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.