Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

KeyEvent.getShift

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

Syntax

public boolean getShift()

Return Value

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