WoW API: UIHANDLER OnTabPressed

From AddOn Studio
Revision as of 14:19, 2 January 2010 by WoWWiki>Gourra
Jump to navigation Jump to search

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.