Creates a new KeyboardEvent.
Indicates whether the Alt key is active on Windows or Linux; indicates whether the Option key is active on Mac OS.
Indicates if event will bubble.
Contains the character code of the key.
Indicates whether the Ctrl key is active on Windows or Linux; indicates whether either the Ctrl or the Command key is active on Mac OS.
The object the event is currently bubbling at.
Arbitrary data that is attached to the event.
The key code of the key.
Indicates the location of the key on the keyboard. This is useful for differentiating keys that appear more than once on a keyboard. @see Keylocation
Indicates whether the Shift key modifier is active (true) or inactive (false).
The object that dispatched the event.
A string that identifies the event.
Event type for a display object that is added to a parent.
Event type for a display object that is added to the stage
An event type to be utilized in custom events. Not used by Starling right now.
An event type to be utilized in custom events. Not used by Starling right now.
An event type to be utilized in custom events. Not used by Starling right now.
Event type that may be used whenever something finishes.
Event type for a (re)created stage3D rendering context.
Event type for a display object that is entering a new frame.
Event type that is dispatched by the Starling instance when it encounters a problem from which it cannot recover, e.g. a lost device context.
Event type that is dispatched by the AssetManager when a file/url cannot be loaded.
Event type for a key that was pressed.
Event type for a key that was released.
An event type to be utilized in custom events. Not used by Starling right now.
Event type that is dispatched by the AssetManager when an xml or json file couldn't be parsed.
An event type to be utilized in custom events. Not used by Starling right now.
Event type for a display object that is removed from its parent.
Event type for a display object that is removed from the stage.
Event type for an animated object that requests to be removed from the juggler.
Event type that is dispatched by the Starling instance directly before rendering.
Event type for a resized Flash Player.
Event type that indicates that the root DisplayObject has been created.
An event type to be utilized in custom events. Not used by Starling right now.
Event type that is dispatched by the AssetManager when a file/url cannot be loaded.
An event type to be utilized in custom events. Not used by Starling right now.
Event type that is dispatched by the AssetManager after a context loss.
Event type for a triggered button.
An event type to be utilized in custom events. Not used by Starling right now.
Checks whether the preventDefault() method has been called on the event.
Cancels the keyboard event's default behavior. This will be forwarded to the native flash KeyboardEvent.
Prevents any other listeners from receiving the event.
Prevents listeners at the next bubble stage from receiving the event.
Returns a description of the event, containing type and bubble information.
Generated using TypeDoc
A KeyboardEvent is dispatched in response to user input through a keyboard.
This is Starling's version of the Flash KeyboardEvent class. It contains the same properties as the Flash equivalent.
To be notified of keyboard events, add an event listener to any display object that is part of your display tree. Starling has no concept of a "Focus" like native Flash.
@see starling.display.Stage