KeyEvent Methods

Overview | Fields | This Package | All Packages

KeyEvent Methods

Constructors Description
KeyEvent Creates a KeyEvent object.

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

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

getKeyCode Retrieves the key code for the key the user pressed.

getModifiers Retrieves a value indicating which, if any, of the CTRL, SHIFT, and ALT keys were pressed when the event occurred.

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