Function Name | c:<CONTROL-NAME>#OnKeyDown |
---|---|
Syntax | (defun c:<CONTROL-NAME>#OnKeyDown
(Character [as String]
RepeatCount [as Integer] Flags
[as Bitflag] /) |
Return Type | Ignored |
Applies To | Block List, Grid, List View, Picture Box, Slide View, Text Box, Tree |
This event is triggered when the user presses a key. Character is the key, RepeatCount is the number of times the key is repeated when it is held down. Flags specifies additional information about the keyboard state.
Flags bit(s) | Meaning |
---|---|
0 - 7 | Scan code (OEM-dependent value) |
8 | Extended key (function key, numeric keypad key, etc.) |
9 - 10 | Not used |
11 - 12 | Used internally by Windows |
13 | [Alt] key is down |
14 | Set if key is down before event |
15 | Set if key is being released |