Java javafx.scene.input KeyEvent fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.input KeyEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.input KeyEvent.

The text is from its open source code.

Field

EventTypeANY
Common supertype for all key event types.
EventTypeKEY_PRESSED
This event occurs when a key has been pressed.
EventTypeKEY_RELEASED
This event occurs when a key has been released.
EventTypeKEY_TYPED
This event occurs when a character-generating key was typed (pressed and released).

Constructor

Method

voidconsume()
Marks this Event as consumed.
StringgetCharacter()
The Unicode character or sequence of characters associated with the key typed event.
KeyCodegetCode()
The key code associated with the key in this key pressed or key released event.
EventTypegetEventType()
StringgetText()
A String describing the key code, such as "HOME", "F1" or "A", for key pressed and key released events.
booleanisAltDown()
Returns whether or not the Alt modifier is down on this event.
booleanisControlDown()
Returns whether or not the Control modifier is down on this event.
booleanisMetaDown()
Returns whether or not the Meta modifier is down on this event.
booleanisShiftDown()
Returns whether or not the Shift modifier is down on this event.