- java.lang.Object
-
- java.lang.Enum<KeyEvent.ModKey>
-
- org.jline.terminal.KeyEvent.ModKey
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeyEvent.ModKey>
- Enclosing class:
- KeyEvent
public static enum KeyEvent.ModKey extends java.lang.Enum<KeyEvent.ModKey>
Identifies individual modifier keys for standalone key events. Only reported by the Kitty Keyboard Protocol withReportAllKeys.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LeftAltLeftControlLeftHyperLeftMetaLeftShiftLeftSuperRightAltRightControlRightHyperRightMetaRightShiftRightSuper
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyEvent.ModKeyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyEvent.ModKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LeftShift
public static final KeyEvent.ModKey LeftShift
-
LeftControl
public static final KeyEvent.ModKey LeftControl
-
LeftAlt
public static final KeyEvent.ModKey LeftAlt
-
LeftSuper
public static final KeyEvent.ModKey LeftSuper
-
LeftHyper
public static final KeyEvent.ModKey LeftHyper
-
LeftMeta
public static final KeyEvent.ModKey LeftMeta
-
RightShift
public static final KeyEvent.ModKey RightShift
-
RightControl
public static final KeyEvent.ModKey RightControl
-
RightAlt
public static final KeyEvent.ModKey RightAlt
-
RightSuper
public static final KeyEvent.ModKey RightSuper
-
RightHyper
public static final KeyEvent.ModKey RightHyper
-
RightMeta
public static final KeyEvent.ModKey RightMeta
-
-
Method Detail
-
values
public static KeyEvent.ModKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyEvent.ModKey c : KeyEvent.ModKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyEvent.ModKey valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-