from retail

This commit is contained in:
NoM0Re
2025-01-25 19:03:51 +01:00
parent e8451987a3
commit c066688fef
5 changed files with 59 additions and 35 deletions
@@ -946,14 +946,14 @@ function OptionsPrivate.CreateFrame()
event = event,
time = currentTime,
}
if event == "OnEditFocusGained" or not dynamicTextCodesFrame:IsShown() then
if event == "OnEnterPressed" then
dynamicTextCodesFrame:Hide()
elseif event == "OnEditFocusGained" or not dynamicTextCodesFrame:IsShown() then
dynamicTextCodesFrame:Show()
if OptionsPrivate.currentDynamicTextInput ~= widget then
OptionsPrivate.UpdateTextReplacements(dynamicTextCodesFrame, data)
end
OptionsPrivate.currentDynamicTextInput = widget
elseif event == "OnEnterPressed" then
dynamicTextCodesFrame:Hide()
elseif not dynamicTextCodesFrame:IsMouseOver() then -- Prevents hiding when clicking inside the frame
dynamicTextCodesFrame:Hide()
end