Package org.jline.terminal
Enum Class KeyEvent.Type
- All Implemented Interfaces:
Serializable,Comparable<KeyEvent.Type>,Constable
- Enclosing class:
KeyEvent
Defines the types of key events that can occur.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn arrow key was pressed.A printable character was typed.A function key was pressed (F1-F35).A keypad key was pressed.A media key was pressed.A modifier key was pressed or released as its own event.A special key was pressed (Enter, Tab, Escape, etc.).An unrecognized key sequence. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyEvent.TypeReturns the enum constant of this class with the specified name.static KeyEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Character
A printable character was typed. -
Arrow
An arrow key was pressed. -
Function
A function key was pressed (F1-F35). -
Special
A special key was pressed (Enter, Tab, Escape, etc.). -
Keypad
A keypad key was pressed. -
Media
A media key was pressed. -
ModifierKey
A modifier key was pressed or released as its own event. Only reported by the Kitty Keyboard Protocol with ReportAllKeys. -
Unknown
An unrecognized key sequence.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-