Package: pumpkin.events

KeyboardEvent


Description

The KeyboardEvent is fired in response to KeyBoard presses or virtual key events triggered on the Stage.



Constructors

KeyboardEvent

Creates a new KeyboardEvent.


Variables

KEY_DOWN

Key down event.

KEY_UP

Key up event.

altKey

Indicates the alt key is pressed. [not implemented].

charString

Indicateds the character string.

charCode

Indicateds the raw keyboard character code. [not implemented].

commandKey

Indicates the Mac OS Command key is pressed. [not implemented].

controlKey

Indicates the control key is pressed. [not implemented].

ctrlKey

Indicates the ctrl of Mac OS Command key is pressed. [not implemented].

keyCode

Indicateds the raw keyboard key code. [not implemented].

shiftKey

Indicates the shift key is pressed. [not implemented].


Inherited members

Functions

toEvent< T >

Cast event to a abstracted type.

toTarget< T >

Cast target to type.

isCancelled

Returns true if event propagation was stoped.

isImmediateCancelled

Returns true if event propagation was stoped.

cancel

[dev]

cancelImmediate

[dev]


Variables

ENTER_FRAME

Enter frame event.

RESIZE

DisplayObject resize event.

COMPLETE

General completion event.

CHANGED

Changed event.

ADDED_TO_STAGE

Display object or one of its parents added to the stage.

REMOVED_FROM_STAGE

Display object or one of its parents removed from the stage.

type

Event type eg.

bubbles

Event bubbles up the display list hierarchy.

cancelable

Event is cancelable.

currentTarget

Current event target trigger or the object dispatchEvent() is bieng called ( use target instead ).

target

The target object dispatchEvent() is bieng called on.

used

Is the event used or consumed eg.

eventPhase

Current EventPhase id.