Example usage for Java javafx.scene.input KeyEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
EventType | ANY Common supertype for all key event types. |
EventType | KEY_PRESSED This event occurs when a key has been pressed. |
EventType | KEY_RELEASED This event occurs when a key has been released. |
EventType | KEY_TYPED This event occurs when a character-generating key was typed (pressed and released). |
void | consume() Marks this Event as consumed. |
String | getCharacter() The Unicode character or sequence of characters associated with the key typed event. |
KeyCode | getCode() The key code associated with the key in this key pressed or key released event. |
EventType | getEventType() |
String | getText() A String describing the key code, such as "HOME", "F1" or "A", for key pressed and key released events. |
boolean | isAltDown() Returns whether or not the Alt modifier is down on this event. |
boolean | isControlDown() Returns whether or not the Control modifier is down on this event. |
boolean | isMetaDown() Returns whether or not the Meta modifier is down on this event. |
boolean | isShiftDown() Returns whether or not the Shift modifier is down on this event. |