isShifted

open fun isShifted(): Boolean

Returns the state of the shift key of the keyboard, if any.

Return

true if the shift is in a pressed state, false otherwise. If there is no shift key on the keyboard or there is no keyboard attached, it returns false.

See also