Enum Class KeyMappingModifier

java.lang.Object
java.lang.Enum<KeyMappingModifier>
net.mezzdev.config.gui.api.keybindings.KeyMappingModifier
All Implemented Interfaces:
Serializable, Comparable<KeyMappingModifier>, Constable

public enum KeyMappingModifier extends Enum<KeyMappingModifier>
Standard modifier requirements for configured bindings, including portable aliases.
Since:
0.6.0
  • Enum Constant Details

    • SHIFT

      public static final KeyMappingModifier SHIFT
      Either Shift key.
      Since:
      0.6.0
    • CONTROL

      public static final KeyMappingModifier CONTROL
      Either physical Control key, including on macOS.
      Since:
      0.6.0
    • ALT

      public static final KeyMappingModifier ALT
      Either Alt key.
      Since:
      0.6.0
    • COMMAND

      public static final KeyMappingModifier COMMAND
      Either Command/Super key.
      Since:
      0.6.0
    • CONTROL_OR_COMMAND

      public static final KeyMappingModifier CONTROL_OR_COMMAND
      A portable alias for Command on macOS and Control elsewhere.
      Since:
      0.6.0
  • Method Details

    • values

      public static KeyMappingModifier[] 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

      public static KeyMappingModifier valueOf(String name)
      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 name
      NullPointerException - if the argument is null