WoW:API EditBox SetAutoFocus
Jump to navigation
Jump to search
Arguments: true, false.
Sets the autofocus of an EditBox UIObject to either true or false.
AutoFocus causes the keyboard inline to automatically enter the EditBox when the EditBox is shown. Otherwise Focux is established by clicking on the EditBox.
Initial setting appears to be true.
Example:
<Scripts> <OnLoad> myEditBox:SetAutoFocus( false ); </OnLoad> </Scripts>
--Will disable AutoFocus on myEditBox when the addon loads.