Overview
An event which indicates that a keystroke occurred in a Node.
This low-level event is generated by a Node object when a key is pressed, released, or typed. Depends on the type of the event it is passed to Node#onKeyPressed, Node#onKeyTyped or Node#onKeyReleased function.
Profile: common conditional keyboard
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | altDown | Boolean |
Returns whether or not the Alt modifier is down on this event. |
||||
public-read | char | String |
The character associated with the key in this event. The character associated with the key in this event. For example, the key typed event for shift + "a" returns the value for "A". Profile: common conditional keyboard |
||||
public | CHAR_UNDEFINED | String |
KEY_PRESSED and KEY_RELEASED events which do not map to a valid Unicode character use this for the keyChar value. |
||||
public-read | code | KeyCode |
The integer keyCode associated with the key in this event. |
||||
public-read | controlDown | Boolean |
Returns whether or not the Control modifier is down on this event. |
||||
public-read | metaDown | Boolean |
Returns whether or not the Meta modifier is down on this event. |
||||
public-read | node | Node |
The Node that originated the event. |
||||
public-read | shiftDown | Boolean |
Returns whether or not the Shift modifier is down on this event. |
||||
public-read | text | String |
A String describing the keyCode, such as "HOME", "F1" or "A" for key pressed and key released events. A String describing the keyCode, such as "HOME", "F1" or "A"
for key pressed and key released events.
For key typed events returns Profile: common conditional keyboard |
Inherited Variables
Function Summary
- public copy(node: Node, evt: KeyEvent) : KeyEvent
- public keyEvent(node: Node, awtKeyEvent: java.awt.event.KeyEvent) : KeyEvent