Microsoft SDK for Java

KeyEvent.getAlt

Retrieves a boolean value indicating whether the ALT key was pressed when the event occurred.

Syntax

public boolean getAlt()

Return Value

Returns true if the ALT key was pressed when the event occurred; otherwise, returns false.

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