keyLocation property

KeyLocation keyLocation
final

Indicates the location of the key on the keyboard.

This is useful for differentiating keys that appear more than once on a keyboard. For example, you can differentiate between the left and right Shift keys by the value of this property:

Another example is differentiating between number keys pressed on the standard keyboard (KeyLocation.STANDARD) versus the numeric keypad (KeyLocation.NUM_PAD).

Implementation

final KeyLocation keyLocation;