Fandom

WoWWiki

API EditBox SetAutoFocus

104,635pages on
this wiki
Add New Page
Talk1 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Widget API ← EditBox < SetAutoFocus


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

EditBox:SetAutoFocus(autoFocus)


Arguments Edit

autoFocus 
Boolean - Whether autofocus should be enabled


Returns Edit

nil


Example Edit

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

Result

Will disable AutoFocus on myEditBox when the addon loads.


Details Edit

Initial setting appears to be true.

Also on Fandom

Random Wiki