Arma 3 Scripting

Command in GUI Control

focusedCtrl

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns display's focused control.

Syntax

focusedCtrl display

Parameters:

Returns: Control - control which has focus

Examples

Example 1

private _focusedCtrl = focusedCtrl findDisplay 12;

Example 2

private _isFocused = focusedCtrl _display == _ctrl;

Example 3

private _isFocused = focusedCtrl (ctrlParent _ctrl) == _ctrl;

See also

ctrlSetFocus · displayParent · ctrlParent