Package org.jline.terminal
Enum Class KeyEvent.Modifier
- All Implemented Interfaces:
Serializable,Comparable<KeyEvent.Modifier>,Constable
- Enclosing class:
KeyEvent
Defines modifier keys that can be held during a key event.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyEvent.ModifierReturns the enum constant of this class with the specified name.static KeyEvent.Modifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Shift
The Shift key was held. -
Alt
The Alt key was held. -
Control
The Control key was held. -
Super
The Super (Windows/Command) key was held. Reported by the Kitty Keyboard Protocol. -
Hyper
The Hyper key was held. Reported by the Kitty Keyboard Protocol. -
Meta
The Meta key was held. Reported by the Kitty Keyboard Protocol. -
CapsLock
The Caps Lock key was active. Reported by the Kitty Keyboard Protocol. -
NumLock
The Num Lock key was active. Reported by the Kitty Keyboard Protocol.
-
-
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
-