Microsoft SDK for Java

KeyEvent.getKeyCode

Retrieves the key code for the key the user pressed.

Syntax

public int getKeyCode()

Return Value

Returns the key code for the key the user pressed.

Remarks

Key code constants are defined in the Key class.

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