TXTextControl.KeyUp Event

Occurs when the user releases a key while the Text Control has the input focus. To interpret ANSI characters, use the KeyPress event.

Syntax

KeyUp(KeyCode, Shift)
Parameter Description
KeyCode

Is the virtual-key code of the released key. When this value is changed, Text Control handles the changed key.

Shift

Informs about the state of the SHIFT, CTRL and ALT keys at the time of the event. It is the sum of one or more of the following values:


Value Description
1 The SHIFT key was pressed at the time of the event.
2 The CTRL key was pressed at the time of the event.
4 The ALT key was pressed at the time of the event.

Data Types

KeyCode:    Integer
Shift:    Integer

See Also