Package | Description |
---|---|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
Modifier and Type | Method and Description |
---|---|
KeyCode |
KeyCodeCombination.getCode()
Gets the key code associated with this key combination.
|
KeyCode |
KeyEvent.getCode()
The key code associated with the key in this key pressed or key released
event.
|
KeyCode |
KeyCombination.Modifier.getKey()
Gets the modifier key of this
Modifier . |
static KeyCode |
KeyCode.getKeyCode(String name)
Parses textual representation of a key.
|
static KeyCode |
KeyCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyCode[] |
KeyCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
KeyCodeCombination(KeyCode code,
KeyCombination.Modifier... modifiers)
Constructs a
KeyCodeCombination for the specified main key and
with the specified list of modifiers. |
KeyCodeCombination(KeyCode code,
KeyCombination.ModifierValue shift,
KeyCombination.ModifierValue control,
KeyCombination.ModifierValue alt,
KeyCombination.ModifierValue meta,
KeyCombination.ModifierValue shortcut)
Constructs a
KeyCodeCombination for the specified main key and
with an explicit specification of all modifier keys. |
KeyEvent(EventType<KeyEvent> eventType,
String character,
String text,
KeyCode code,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown)
Constructs new KeyEvent event with null source and target and KeyCode object directly specified.
|
KeyEvent(Object source,
EventTarget target,
EventType<KeyEvent> eventType,
String character,
String text,
KeyCode code,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown)
Constructs new KeyEvent event with null source and target and KeyCode object directly specified.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.