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".
The API is no longer being updated here until further notice. |
Fires when pressing enter, escape, press or tab.
(self)
Arguments[]
- self
- EditBox - The focussed widget.
Details[]
- Fires after OnKeyDown.
- FrameXML includes typical OnEscapePressed and OnTabPressed handlers in InputBoxScriptTemplate.
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)