CRT Documentation: Reference |
[This function does not have a corresponding DOS function.]
Returns the status of the Alt key.
function IsAltPressed: boolean;
True if Alt was held down during the last ReadKey call, otherwise False.
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.
Crt Overview, ReadKey, IsCtrlPressed, IsShiftPressed