CRT Documentation: Reference

IsAltPressed

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

Returns the status of the Alt key.

function IsAltPressed: boolean;

Parameters

This function has no parameters.

Return Values

True if Alt 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, IsCtrlPressed, IsShiftPressed