m
Not a talk page, doesn't need signatures. Consolidated code into one example. Changed "this" to "self".
No edit summary |
m (Not a talk page, doesn't need signatures. Consolidated code into one example. Changed "this" to "self".) |
||
| Line 3: | Line 3: | ||
EditBox:OnTabPressed() | EditBox:OnTabPressed() | ||
EditBox:SetScript("OnTabPressed", function(self) | |||
self:Insert(" "); -- ''(4 spaces)'' | |||
EditBox:SetScript("OnTabPressed", function() | |||
end; | end; | ||
This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used. | This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used. | ||
{{DEFAULTSORT:OnTabPressed}} | {{DEFAULTSORT:OnTabPressed}} | ||