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

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

 
publicCHAR_UNDEFINEDString

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

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

The Node that originated the event.

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

Function Summary

public copy(node: Node, evt: KeyEvent) : KeyEvent
Parameters
node
evt
Returns
KeyEvent
 
public keyEvent(node: Node, awtKeyEvent: java.awt.event.KeyEvent) : KeyEvent
Parameters
node
awtKeyEvent
Returns
KeyEvent
 

Inherited Functions




Spec-Zone.ru - all specs in one place