KeyEvent.getKeyCode

Overview | Methods | Fields | This Package | All Packages

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.