WoW:UIHANDLER OnTabPressed: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Not a talk page, doesn't need signatures. Consolidated code into one example. Changed "this" to "self".)
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi|nosort=1}}


  EditBox:OnTabPressed()
  EditBox:OnTabPressed()

Revision as of 14:19, 2 January 2010

WoW API

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

This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used.