TextField.OnKeyDown Method
A OnKeyDown function that can be overridden when inheriting from the control.

OnKeyDown(
keyCode
as UInt16,
characters
as string,
charactersIgnoringModifiers
as string,
modifierFlags
as KeyModifierFlags)
as bool
Parameters
- keyCode
- key code.
- characters
- Characters representing the pressed key as string.
- charactersIgnoringModifiers
- Characters representing the pressed key when ignoring all modifiers.
- modifierFlags
- Modifier flags.
Returns
- bool
- Return true to cancel internal functionality, else false.
Remarks
The normal event will not be called unless inheriting function calls the base function.
Note:
You will even get command combinations like Command - Q for example, so if your doing any kind of filtering then be sure to check the modifier flags.
See Also
TextField Control