Packageflash.ui
Classpublic final class KeyLocation
InheritanceKeyLocation Inheritance Object

The KeyLocation class contains constants that indicate the location of a key pressed on the keyboard. The KeyLocation constants are used in the KeyboardEvent.keyLocation property.

See also
flash.events.KeyboardEvent.keyLocation


Public Constants
 PropertyDefined by
  LEFT : uint = 1
[static] The key activated is in the left key location (there is more than one possible location for this key).
KeyLocation
  NUM_PAD : uint = 3
[static] The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad.
KeyLocation
  RIGHT : uint = 2
[static] The key activated is in the right key location (there is more than one possible location for this key).
KeyLocation
  STANDARD : uint = 0
[static] The key activation is not distinguished as the left or right version of the key, and did not originate on the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad).
KeyLocation
Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
 FunctionDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constant detail
LEFT constant
public static const LEFT:uint = 1

The key activated is in the left key location (there is more than one possible location for this key). Example: The left Shift key on a PC 101 Key US keyboard.
NUM_PAD constant
public static const NUM_PAD:uint = 3

The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad. Example: The 1 key on a PC 101 Key US keyboard located on the numeric pad.
RIGHT constant
public static const RIGHT:uint = 2

The key activated is in the right key location (there is more than one possible location for this key). Example: The right Shift key on a PC 101 Key US keyboard.
STANDARD constant
public static const STANDARD:uint = 0

The key activation is not distinguished as the left or right version of the key, and did not originate on the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad). Example: The Q key on a PC 101 Key US keyboard.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/flashauthoringpreview/flash/ui/KeyLocation.html