Modifier and Type | Interface and Description |
---|---|
static class |
KeyPressed.Builder
A builder of
KeyPressed . |
Modifier and Type | Method and Description |
---|---|
default char |
keyChar()
Returns the character corresponding to the pressed key or 0 when a keyboard modifier such as
Shift, Ctrl, Alt, Command, Win etc.
|
default KeyCode |
keyCode()
Returns the code of the key.
|
default KeyLocation |
keyLocation()
Returns the location of the key on the keyboard.
|
default KeyModifiers |
keyModifiers()
Returns the keyboard modifiers applied.
|
static KeyPressed.Builder |
newBuilder(KeyCode keyCode)
Creates a new
KeyPressed builder with the given required parameters. |
static KeyPressed.Builder newBuilder(KeyCode keyCode)
KeyPressed
builder with the given required parameters.keyCode
- the code of the keyKeyPressed.Builder
instancedefault KeyCode keyCode()
KeyEvent
default KeyModifiers keyModifiers()
KeyEvent
keyModifiers
in interface KeyEvent
default KeyLocation keyLocation()
KeyEvent
keyLocation
in interface KeyEvent
default char keyChar()