Package | Description |
---|---|
com.googlecode.lanterna.input |
Modifier and Type | Field | Description |
---|---|---|
protected Map<Character,KeyType> |
EscapeSequenceCharacterPattern.finMap |
Map of recognized "finish pattern" sequences:
e.g.: 'A' -> ArrowUp : "Esc [ A" |
protected Map<Integer,KeyType> |
EscapeSequenceCharacterPattern.stdMap |
Map of recognized "standard pattern" sequences:
e.g.: 24 -> F12 : "Esc [ 24 ~" |
Modifier and Type | Method | Description |
---|---|---|
KeyType |
KeyStroke.getKeyType() |
Type of key that was pressed on the keyboard, as represented by the KeyType enum.
|
static KeyType |
KeyType.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
KeyType.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
protected KeyStroke |
EscapeSequenceCharacterPattern.getKeyStroke(KeyType key,
int mods) |
combines a KeyType and modifiers into a KeyStroke.
|
Constructor | Description |
---|---|
KeyStroke(KeyType keyType) |
Constructs a KeyStroke based on a supplied keyType; character will be null and both ctrl and alt will be
considered not pressed.
|
KeyStroke(KeyType keyType,
boolean ctrlDown,
boolean altDown) |
Constructs a KeyStroke based on a supplied keyType; character will be null.
|
KeyStroke(KeyType keyType,
boolean ctrlDown,
boolean altDown,
boolean shiftDown) |
Constructs a KeyStroke based on a supplied keyType; character will be null.
|
Copyright © 2020. All rights reserved.