LastKey
LastKey
Returns the last key and shift state
Runtime-only Integer property
Applies to: Grid
Introduced in KCML version 5.03
This property returns the last character pressed by the user while the Grid control was in focus. This property can be used in conjunction with the Char() event handler to allow the keyboard as well as the mouse to be used to select cells.
Unlike LastChar$ this property can be used with non-character based keys such as the function keys. The value is a combination of the VK character code and the shift status of the key. See Key$ for a table of codes.