CRT Documentation: Reference

IsShiftPressed

[This function does not have a corresponding DOS function.]

Returns the status of the Shift key.

function IsShiftPressed: boolean;

Parameters

This function has no parameters.

Return Values

True if Shift was held down during the last ReadKey call, otherwise False.

Remarks

This function uses the last state as retrieved with the last ReadKey call, it does not check the current status. This makes it easier to trap specific key combinations since you can reliably check whether a specific key combination was made.

See Also

Crt Overview, ReadKey, IsAltPressed, IsCtrlPressed