Microsoft SDK for Java

Control.getModifierKeys

Retrieves a value indicating the current state of the SHIFT, CTRL, and ALT keys.

Syntax

public static final int getModifierKeys()

Return Value

Returns an integer that represents the status of the SHIFT, CTRL, and ALT keys. Possible return values are obtained by applying the bitwise OR operation (|) to the Key.SHIFT, Key.CONTROL, and Key.ALT constants defined in the Key class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.