Skip to content

__UI_KeyHit

Samuel Gomes edited this page May 9, 2023 · 1 revision

__UI_KeyHit is a global variable of type LONG INTEGER that holds the scan code of the last key pressed by the user. Positive values mean a key was pressed, negative values indicate a key was released.

This variable can be accessed anywhere, but it's usually manipulated in KeyPress event handlers, especially for Textbox controls, as it can be used to change the key presses that actually get sent to the control.

Clone this wiki locally