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
Attribute Summary
name | type | description |
---|---|---|
Public | ||
node | Node |
The Node that originated the event. More: [+]The Node that originated the event. Profile: common conditional keyboard |
Protected |
Inherited Attributes
Function Summary
- public static createKeyEvent(node: Node, awtKeyEvent: java.awt.event.KeyEvent) : KeyEvent
-
More: [+]
-
Parameters
- node
- awtKeyEvent
-
Returns
- KeyEvent
- public getKeyChar() : java.lang.String
-
Returns the character associated with the key in this event.
More: [+]Returns the character associated with the key in this event. For example, the key typed event for shift + "a" returns the value for "A".
-
Returns
- String
Profile: common conditional keyboard
- public getKeyCode() : Integer
-
Returns the integer keyCode associated with the key in this event.
More: [+]Returns the integer keyCode associated with the key in this event.
-
Returns
- Integer
Profile: common conditional keyboard
- public getKeyText() : java.lang.String
-
Returns a String describing the keyCode, such as "HOME", "F1" or "A" for key pressed and key released events.
More: [+]Returns a String describing the keyCode, such as "HOME", "F1" or "A" for key pressed and key released events. For key typed events returns
null
-
Returns
- String
Profile: common conditional keyboard
- public isAltDown() : Boolean
-
Returns whether or not the Alt modifier is down on this event.
More: [+]Returns whether or not the Alt modifier is down on this event.
-
Returns
- Boolean
Profile: common conditional keyboard
- public isControlDown() : Boolean
-
Returns whether or not the Control modifier is down on this event.
More: [+]Returns whether or not the Control modifier is down on this event.
-
Returns
- Boolean
Profile: common conditional keyboard
- public isMetaDown() : Boolean
-
Returns whether or not the Meta modifier is down on this event.
More: [+]Returns whether or not the Meta modifier is down on this event.
-
Returns
- Boolean
Profile: common conditional keyboard
- public isShiftDown() : Boolean
-
Returns whether or not the Shift modifier is down on this event.
More: [+]Returns whether or not the Shift modifier is down on this event.
-
Returns
- Boolean
Profile: common conditional keyboard