OnKeydown(self,
line,
x,
sellen,
vkey,
shift)
|
|
A keyboard key has been pressed This is a generic callback and the CLI
is free to do whatever it wants.
This callback is optional.
- Parameters:
line - current input line
x - current x coordinate of the cursor
sellen - current selection length (usually 0)
vkey - virtual key code. if the key has been handled, it should be
returned as zero
shift - shift state
- Returns:
- None - Nothing was changed tuple(line, x, sellen, vkey): if
either of the input line or the x coordinate or the selection
length has been modified. It is possible to return a tuple with
None elements to preserve old values. Example: tuple(new_line,
None, None, None) or tuple(new_line)
|