KeyDown

Funktionsname c:<CONTROL-NAME>_OnKeyDown
Syntax   (defun c:<CONTROL-NAME>_OnKeyDown (Character [as String] RepeatCount [as Integer] Flags [as Bitflag] /)
)
Rückgabewert Ignored
Ausgelöst durch Block List, 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 describes the state of the [Shift] and [Ctrl] keys, and the mouse buttons.

Flags bit Value Meaning
0 1 Left mouse button pressed
1 2 Right mouse button pressed
2 4 [Shift] key pressed
3 8 [Ctrl] key pressed
4 16 Middle mouse button pressed