WoW:UIHANDLER OnTabPressed: Difference between revisions

m
Move page script moved page UIHANDLER OnTabPressed to WoW:UIHANDLER OnTabPressed without leaving a redirect
(Aded cat-tag)
m (Move page script moved page UIHANDLER OnTabPressed to WoW:UIHANDLER OnTabPressed without leaving a redirect)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}}
{{widgethandler}}
Fires when tab is pressed
EditBox:OnTabPressed(self)


EditBox:OnTabPressed()
== Example ==
 
  EditBox:SetScript("OnTabPressed", function(self)
Possible for inserting a tab character("\t")?
    self:Insert("   "); -- ''(4 spaces)''
 
  EditBox:SetScript("OnTabPressed", function()
  this:SetText(this:GetText().."\t");
  end;
  end;
 
This will insert 4 spaces at your cursor's position. A tab character or \t will not work, therefore spaces are used.
-- As documented by [[user:egingell|egingell]]
Anonymous user