Widget API: EditBox:SetAutoFocus

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API EditBox SetAutoFocus to API EditBox SetAutoFocus without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← EditBox < SetAutoFocus


Sets whether the cursor should automatically focus on the EditBox when it is shown.

EditBox:SetAutoFocus(autoFocus)


ArgumentsEdit

autoFocus
Boolean - Whether autofocus should be enabled


ReturnsEdit

nil


ExampleEdit

<Scripts>
    <OnLoad>
        myEditBox:SetAutoFocus( false );
    </OnLoad>
</Scripts>

Result

Will disable AutoFocus on myEditBox when the addon loads.


DetailsEdit

Initial setting appears to be true.