From 0515c16d2c43620fe8e7539c0d0a3621d7680b42 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 20 Aug 2010 08:07:00 +0000 Subject: [PATCH] Fix ChatFrameEditBox issue --- WowLua.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WowLua.lua b/WowLua.lua index 5685720..b3f3e5e 100644 --- a/WowLua.lua +++ b/WowLua.lua @@ -418,10 +418,10 @@ StaticPopupDialogs["WOWLUA_SAVE_AS"] = { editBox:HighlightText() end, OnHide = function() - if ( ChatFrameEditBox:IsVisible() ) then - ChatFrameEditBox:SetFocus(); - end - getglobal(this:GetName().."EditBox"):SetText(""); + local activeWindow = ChatEdit_GetActiveWindow() + if activeWindow then + activeWindow:SetText("") + end end, EditBoxOnEnterPressed = function() if ( getglobal(this:GetParent():GetName().."Button1"):IsEnabled() == 1 ) then -- 1.7.9.5