You're missing this block of code that should be after the
MacroFrameText check.
Lua Code:
if ( TradeSkillFrame and TradeSkillFrame:IsShown() ) then
local item;
if ( strfind(text, "item:", 1, true) ) then
item = GetItemInfo(text);
end
if ( item ) then
TradeSkillFrameSearchBox:SetFontObject("ChatFontSmall");
TradeSkillFrameSearchBoxSearchIcon:SetVertexColor(1.0, 1.0, 1.0);
TradeSkillFrameSearchBox:SetText(item);
return true;
end
end