CRT Documentation: Reference |
[This function does not have a corresponding DOS function.]
Returns the status of the Ctrl key.
function IsCtrlPressed: boolean;
True if Ctrl 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, IsAltPressed, IsShiftPressed