Widget handlers < OnTabPressed

Fires when tab is pressed


Example Edit

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

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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.