WindowSplitter Xojo Plugin

RectControl.KeyDown Event

The user has pressed the Key passed while the control has the focus.

KeyDown(
   Key as String) as Boolean

Parameters

Key
String representing the pressed key.

Returns

Boolean
TextField and TextArea Returning True means the key is intercepted, preventing the key from actually reaching the control at all. This would be useful if you want to override the behavior of the tab key for example. Returning False means the key reaches the control.

All Other Controls Returning True prevents the KeyDown event on the parent control (usually the window) from executing. Returning False results in the execution of the KeyDown event of the parent control.

Remarks

How KeyDown works depends on the type of control.

This event is part of Xojo base class.