Open topic with navigation

com.hp.lft.sdk

## Enum KeyModifier

- java.lang.Object
- - java.lang.Enum<KeyModifier>
  - - com.hp.lft.sdk.KeyModifier

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<KeyModifier>

      public enum KeyModifier
      extends java.lang.Enum<KeyModifier>

  Represents keyboard keys that can be pressed and held down during the execution of a method, such as the SendKeys method.

- - ### Enum Constant Summary

    Enum Constant and Description
    `ALT` An Alt key.
    `CTRL` A control key.
    `LEFT_ALT` The left Alt key.
    `LEFT_CTRL` The left control key.
    `LEFT_SHIFT` The left Shift key.
    `LEFT_WINDOWS_LOGO` The left Windows key.
    `RIGHT_ALT` The right Alt key.
    `RIGHT_CTRL` The right control key.
    `RIGHT_SHIFT` The right Shift key.
    `RIGHT_WINDOWS_LOGO` The right Windows key.
    `SHIFT` A Shift key.
    `WINDOWS_LOGO` A Windows key.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `static KeyModifier` | `valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
    `static KeyModifier[]` | `values()` Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### CTRL

          public static final KeyModifier CTRL

      A control key.

    - #### LEFT_CTRL

          public static final KeyModifier LEFT_CTRL

      The left control key.

    - #### RIGHT_CTRL

          public static final KeyModifier RIGHT_CTRL

      The right control key.

    - #### ALT

          public static final KeyModifier ALT

      An Alt key.

    - #### LEFT_ALT

          public static final KeyModifier LEFT_ALT

      The left Alt key.

    - #### RIGHT_ALT

          public static final KeyModifier RIGHT_ALT

      The right Alt key.

    - #### SHIFT

          public static final KeyModifier SHIFT

      A Shift key.

    - #### LEFT_SHIFT

          public static final KeyModifier LEFT_SHIFT

      The left Shift key.

    - #### RIGHT_SHIFT

          public static final KeyModifier RIGHT_SHIFT

      The right Shift key.

    - #### WINDOWS_LOGO

          public static final KeyModifier WINDOWS_LOGO

      A Windows key.

    - #### LEFT_WINDOWS_LOGO

          public static final KeyModifier LEFT_WINDOWS_LOGO

      The left Windows key.

    - #### RIGHT_WINDOWS_LOGO

          public static final KeyModifier RIGHT_WINDOWS_LOGO

      The right Windows key.

  - ### Method Detail

    - #### values

          public static KeyModifier[] 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 (KeyModifier c : KeyModifier.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static KeyModifier 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 name
        `java.lang.NullPointerException` - if the argument is null