WoW API: UIHANDLER OnTabPressed

From AddOn Studio
Revision as of 23:45, 8 April 2009 by WoWWiki>Egingell (Not a talk page, doesn't need signatures. Consolidated code into one example. Changed "this" to "self".)
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.

Warning: Default sort key "OnTabPressed" overrides earlier default sort key "UIHANDLER OnTabPressed".