public class KeyboardEvent extends Event
| Modifier | Constructor and Description |
|---|---|
protected |
KeyboardEvent() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getType, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagationpublic final boolean isAltKey()
public final int charCode()
public final int keyCode()
public final int keyLocation()
public final boolean isCtrlKey()
public final boolean isShiftKey()
Copyright © 2013. All Rights Reserved.