from retail
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user