{"name":"focusedCtrl","operator":null,"title":"focusedCtrl","type":"command","url":"https://community.bistudio.com/wiki/focusedCtrl","revid":348589,"updated":"2023-11-08T13:42:42Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.04"}],"since":{"game":"arma3","name":"Arma 3","version":"2.04"},"arma3_since":"2.04","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns display's focused control.","syntaxes":[{"syntax":"focusedCtrl display","since":null,"effect":null,"exec":null,"params":[{"name":"display","type":"Display","optional":false,"default":null,"description":"parent display","types":["Display"],"since":null,"text":"display: Display - parent display"}],"returns":{"type":"Control","types":["Control"],"description":"control which has focus","text":"Control - control which has focus"},"form":"unary","operator":null,"left":null,"right":{"text":"display","types":["Display"]}}],"examples":[{"text":"```sqf\nprivate _focusedCtrl = focusedCtrl findDisplay 12;\n```","code":["private _focusedCtrl = focusedCtrl findDisplay 12;"]},{"text":"```sqf\nprivate _isFocused = focusedCtrl _display == _ctrl;\n```","code":["private _isFocused = focusedCtrl _display == _ctrl;"]},{"text":"```sqf\nprivate _isFocused = focusedCtrl (ctrlParent _ctrl) == _ctrl;\n```","code":["private _isFocused = focusedCtrl (ctrlParent _ctrl) == _ctrl;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlSetFocus","displayParent","ctrlParent"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 3 version 2.04","Scripting Commands"]}