EditBox:SetAutoFocus
Jump to navigation
Jump to search
Sets whether the cursor should automatically focus on the edit box when it is shown.
EditBox:SetAutoFocus([autoFocus])
Arguments
- autoFocus
- boolean?
= false
- Whether autofocus should be enabled.
Details
- The initial setting appears to be true.
Example
Disable auto focus on myEditBox when the addon loads.
<Scripts>
<OnLoad>
myEditBox:SetAutoFocus( false );
</OnLoad>
</Scripts>