fix: clickaway from bank search
This commit is contained in:
@@ -286,8 +286,14 @@
|
||||
this:SetText("")
|
||||
this:SetTextColor(1, 1, 1, 1)
|
||||
end
|
||||
-- Show bank click catcher to detect clicks outside bank while typing
|
||||
local cc = getglobal("Guda_BankClickCatcher")
|
||||
if cc then cc:Show() end
|
||||
</OnEditFocusGained>
|
||||
<OnEditFocusLost>
|
||||
-- Hide bank click catcher when focus is lost
|
||||
local cc = getglobal("Guda_BankClickCatcher")
|
||||
if cc then cc:Hide() end
|
||||
if this:GetText() == "" then
|
||||
this:SetText("Search bank...")
|
||||
this:SetTextColor(0.5, 0.5, 0.5, 1)
|
||||
@@ -302,6 +308,8 @@
|
||||
this:SetTextColor(0.5, 0.5, 0.5, 1)
|
||||
this:ClearFocus()
|
||||
Guda_BankFrame_OnSearchChanged(this)
|
||||
local cc = getglobal("Guda_BankClickCatcher")
|
||||
if cc then cc:Hide() end
|
||||
</OnEscapePressed>
|
||||
</Scripts>
|
||||
</EditBox>
|
||||
|
||||
Reference in New Issue
Block a user