Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Warning: Display title "Script OnEnterPressed" overrides earlier display title "<span style="color: rgba(var(--theme-page-text-color--rgb), 0.90); font-size:90%;">UIHANDLER</span> OnEnterPressed, OnEscapePressed, OnSpacePressed, OnTabPressed".

Fires when pressing enter, escape, press or tab.

(self)

Arguments[]

self
EditBox - The focussed widget.

Details[]

Examples[]

Clears focus by pressing escape.

editBox:SetScipt("OnEscapePressed", function(self)
	self:ClearFocus()
end)

Adds four spaces by pressing tab.

editBox:SetScript("OnTabPressed", function(self)
	self:Insert("    ");   -- 4 spaces
end)
Advertisement