This function is called when a keyboard key is pressed.
function Widget:KeyDown(keycode)
Parameter | Description |
---|---|
keycode | The key that was pressed. |
If the function returns true, menu hotkeys will be overridden.
This is a protected virtual method. It can only be used by declaring it in a custom widget.