The KeyMessageType enumeration contains values that indicate when the OnKeyPreview event was generated.
It is used by the following property:
Value | Brief description |
256 | KeyDown. It is a system event that occurs when the key has been pressed. This event occurs for all keys, with which any character is associated, and also for such control keys as ESC, ENTER, SPACE, CTRL, SHIFT. This event also occurs for the F1-F12 functional keys (except F10), for such keys as INSERT, DELETE, HOME, END, PAGE UP, PAGE DOWN and their analogs on the additional keyboard, cursor keys, Windows keys and application keys. The OnKeyDown event is generated for the component as a result of this event. |
257 | KeyUp. It is a system event that occurs when the key has been released. This event occurs for all keys, with which any character is associated, and also for such control keys as ESC, ENTER, SPACE, CTRL, SHIFT. This event also occurs for the F1-F12 functional keys (except F10), for such keys as INSERT, DELETE, HOME, END, PAGE UP, PAGE DOWN and their analogs on the additional keyboard, cursor keys, Windows keys and application keys. The OnKeyUp event is generated for the component as a result of this event. |
258 | Char. It is a system event that is connected with the character, for which the KeyDown event was generated. This event occurs for all keys, with which any character is associated and also for such control keys as ESC, ENTER, SPACE, CTRL, SHIFT. The UTF-16 code is used for the characters. The OnKeyPress event is generated for the component as a result of this event. |
259 | DeadChar. It is a system event connected with the character performed by dead key, for which the KeyUp event is generated. A dead key is a key that performs the character that is a combination of other characters. For example, the umlaut-O character (Ö) is generated by typing the dead key for the umlaut character, and then typing the O key. The OnKeyPress event is generated for the component as a result of this event. |
260 | SysKeyDown. It is a system event that occurs when the ALT or F10 key has been pressed. The OnKeyDown event is generated for the component as a result of this event. |
261 | SysKeyUp. It is a system event that occurs when the ALT or F10 key has been released. The OnKeyUp event is generated for the component as a result of this event. |
262 | SysChar. It is a system event that is connected with the character, for which the SysKeyDown event was generated. |
263 | SysDeadChar. It is a system event connected with the SysKeyDown event that was generated in combination with the character that is a dead key derivative. The OnKeyPress event is generated for the component as a result of this event. |
265 | UniChar. It is an analog of Char. As opposed to Char, the UTF-32 code is used in this event. The OnKeyPress event is generated for the component as a result of this event. |
See also: