Widget handler: OnTabPressed

Revision as of 04:49, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page UIHANDLER OnTabPressed to UIHANDLER OnTabPressed without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget handlers < OnTabPressed

Fires when tab is pressed

EditBox:OnTabPressed(self)

ExampleEdit

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.