flash.events
Class KeyboardEvent

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by flash.events.Event
          extended by flash.events.KeyboardEvent

public class KeyboardEvent
extends Event

Implementation of flash.events.KeyboardEvent


Constructor Summary
protected KeyboardEvent()
           
 
Method Summary
 int charCode()
          Contains the character code value of the key pressed or released.
 boolean isAltKey()
          Indicates whether the Alt key is active (true) or inactive (false).
 boolean isCtrlKey()
          On Windows, indicates whether the Ctrl key is active (true) or inactive (false).
 boolean isShiftKey()
          Indicates whether the Shift key is active (true) or inactive (false).
 int keyCode()
          The key code value of the key pressed or released.
 int keyLocation()
          Indicates the location of the key on the keyboard.
 
Methods inherited from class flash.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getType, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagation
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyboardEvent

protected KeyboardEvent()
Method Detail

isAltKey

public final boolean isAltKey()
Indicates whether the Alt key is active (true) or inactive (false).

Returns:

charCode

public final int charCode()
Contains the character code value of the key pressed or released.

Returns:

keyCode

public final int keyCode()
The key code value of the key pressed or released.

Returns:

keyLocation

public final int keyLocation()
Indicates the location of the key on the keyboard.

Returns:

isCtrlKey

public final boolean isCtrlKey()
On Windows, indicates whether the Ctrl key is active (true) or inactive (false).

Returns:

isShiftKey

public final boolean isShiftKey()
Indicates whether the Shift key is active (true) or inactive (false).

Returns:


Copyright © 2011. All Rights Reserved.