fix: clickaway from bank search

This commit is contained in:
Salikh Gurgenidze
2025-11-22 00:48:14 +04:00
parent 4e81c122d0
commit c5b0622453
2 changed files with 50 additions and 0 deletions
+8
View File
@@ -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>