JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

Script Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicCHAR_UNDEFINEDString

KEY_PRESSED and KEY_RELEASED events which do not map to a valid Unicode character use this for the keyChar value.

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-readaltDownBoolean

Returns whether or not the Alt modifier is down on this event.

public-readcharString

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-readcodeKeyCode

The integer keyCode associated with the key in this event.

public-readcontrolDownBoolean

Returns whether or not the Control modifier is down on this event.

public-readmetaDownBoolean

Returns whether or not the Meta modifier is down on this event.

public-initnodeNode

The Node on which this event has occurred.

public-readshiftDownBoolean

Returns whether or not the Shift modifier is down on this event.

public-readtextString

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 null

Profile: common conditional keyboard

 

Inherited Variables

Script Function Summary

public impl_copy(node: Node, evt: KeyEvent) : KeyEvent
Parameters
node
evt
Returns
KeyEvent
 
public impl_keyEvent(node: Node, char: java.lang.String, text: java.lang.String, code: Integer, shiftDown: Boolean, controlDown: Boolean, altDown: Boolean, metaDown: Boolean, eventID: KeyEventID) : KeyEvent
Parameters
node
char
text
code
shiftDown
controlDown
altDown
metaDown
eventID
Returns
KeyEvent
 

Function Summary

public toString() : java.lang.String
Returns
String
 

Inherited Functions




Spec-Zone.ru - all specs in one place