WoW:API EditBox ClearFocus: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
m (Move page script moved page API EditBox ClearFocus to API EditBox ClearFocus without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}


Clears the input text focus out of the EditBox. After this call EditBox will no longer receive input from keyboard.


Clears the cursor focus out of the EditBox.
  editBox:ClearFocus()
  EditBox:ClearFocus()




== Arguments ==
== Arguments ==
None
:''none''




== Returns ==
== Returns ==
:nil
:''nil''
 
== Hints ==
Don't forget to set your editboxes to not to be autofocused, because after pressing a key, it will be automatically refocused and you overwrite it's content.
 
== See also ==
* [[UIOBJECT EditBox|EditBox]] object
* [[API EditBox SetFocus|EditBox:SetFocus()]]
* [[API EditBox IsAutoFocus|EditBox:IsAutoFocus()]]
* [[API EditBox SetAutoFocus|EditBox:SetAutoFocus(autoFocus)]]

Latest revision as of 04:45, 15 August 2023

Widget API ← EditBox < ClearFocus

Clears the input text focus out of the EditBox. After this call EditBox will no longer receive input from keyboard.

editBox:ClearFocus()


Arguments[edit]

none


Returns[edit]

nil

Hints[edit]

Don't forget to set your editboxes to not to be autofocused, because after pressing a key, it will be automatically refocused and you overwrite it's content.

See also[edit]