Widget API: EditBox:SetAutoFocus
Jump to navigation
Jump to search
← 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.