Main Page | Packages | Class Tree | Index | Help

xp.events

class KeyEvent

Object
  |
  +--xp.events.Event
        |
        +--xp.events.KeyEvent


class KeyEvent
extends Event

Broadcast when a key is pressed or released.

Notifies listeners when a key is pressed or released. This is a very low-level event that you should not use unless necessary, because it can affect system performance.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary


code: Number
An integer that represents the key code of the last key pressed.


repeat: Boolean
A boolean indicating whether the key press is being repeated. That is another press with out a release.

Fields inherited from class xp.events.Event

bubbles, cancel, currentTarget, handled, target, type

Constructor

public
KeyEvent ( type: String, code: Number, repeat: Boolean)
Constructs a new KeyUp event



Field Documentation

code

var code: Number
An integer that represents the key code of the last key pressed.

repeat

var repeat: Boolean
A boolean indicating whether the key press is being repeated. That is another press with out a release.


Constructor Documentation

KeyEvent

public function KeyEvent(type: String,
 code: Number,
 repeat: Boolean)
Constructs a new KeyUp event

Parameters:
type
The type of event, keyDown or keyUp
code
An integer that represents the key code of the last key pressed.
repeat

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc