Widget handler: OnTabPressed

Revision as of 04:44, 15 February 2015 by Bear (talk | contribs)

Widget handlers < OnTabPressed

Fires when tab is pressed

EditBox:OnTabPressed(self)

Example

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.