Links
EControl Syntax Editor SDK
TBtnSyntaxEdit.OnKeyDown Property

Occurs when a user presses any key while the control has focus.

property OnKeyDown;

Use the OnKeyDown event handler to specify special processing to occur when a key is pressed. The OnKeyDown handler can respond to all keyboard keys, including function keys and keys combined with the Shift, Alt, and Ctrl keys, and pressed mouse buttons. 

 

The TKeyEvent type points to a method that handles keyboard events. 

 

The Key parameter is the key on the keyboard. For non-alphanumeric keys, use virtual key codes to determine the key pressed. For more information, see Virtual Key codes. 

 

The Shift parameter indicates whether the Shift, Alt, or Ctrl keys are combined with the keystroke.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!