this:ClearFocus();
CT_Viewport_ChangeViewportSide();
if ( ( not tonumber(this:GetText()) or ( this.limitation and tonumber(this:GetText()) > this.limitation ) ) and strlen(this:GetText()) > 0 ) then
if ( tonumber(this:GetText()) and this.limitation and tonumber(this:GetText()) > this.limitation ) then
this:SetText(this.limitation);
else
this:SetText(strsub(this:GetText(), 1, strlen(this:GetText())-1));
end
end
this:HighlightText();
this:HighlightText(0, 0);
if ( IsShiftKeyDown() ) then
getglobal(this:GetParent():GetName() .. "BottomEB"):SetFocus();
else
getglobal(this:GetParent():GetName() .. "TopEB"):SetFocus();
end
if ( IsShiftKeyDown() ) then
getglobal(this:GetParent():GetName() .. "TopEB"):SetFocus();
else
getglobal(this:GetParent():GetName() .. "BottomEB"):SetFocus();
end
if ( IsShiftKeyDown() ) then
getglobal(this:GetParent():GetName() .. "LeftEB"):SetFocus();
else
getglobal(this:GetParent():GetName() .. "RightEB"):SetFocus();
end
if ( IsShiftKeyDown() ) then
getglobal(this:GetParent():GetName() .. "RightEB"):SetFocus();
else
getglobal(this:GetParent():GetName() .. "LeftEB"):SetFocus();
end
this.isResizing = nil;
getglobal(this:GetName() .. "InnerFrame"):StopMovingOrSizing();
PlaySound("UChatScrollButton");
CT_ViewportFrame_OnLoad();
CT_ViewportFrame_OnUpdate(arg1);
CT_ViewportFrame_OnShow();
PlaySound("UChatScrollButton");
CT_ViewportFrame_OnEvent(event);