for i = 1, NUM_CHAT_WINDOWS do local eb = _G['ChatFrame'..i..'EditBox'] eb:Hide() eb:HookScript('OnEnterPressed', function(s) s:Hide() end) end