Description: | Generated when a character key is pressed before the KeyPress event is passed to the control that has the focus. The PreKeyDown, PreKeyPress, and PreKeyUp events enable you to take action on special keys, such as short-cut keys (e.g. Ctrl + D). If no control has the focus then the PreKeyPress event is not generated - the Form only receives the KeyPress event. The PreKeyPress event is generated before the KeyPress event, and hence usually before PreKeyUp and KeyUp events. If a key is pressed and kept depressed, multiple PreKeyDown, KeyDown, PreKeyPress and KeyPress events are generated before the PreKeyUp and KeyUp events. |
Used in controls: | None. |
Used in objects: | Form |
Parameters: | VT_I2 - KeyAsciiS9(4) COMP-5 |
Description of parameters: | KeyAscii: The ASCII code of the key that was pressed. See Key Code Constants for details. You can only use the constants POW-KEY-0 to POW-KEY-9 and POW-KEY-A to POW-KEY-Z in the list. |