fix "save" behaviour of input fields

This commit is contained in:
Eric Mauser
2016-05-17 00:16:35 +02:00
parent a01329785e
commit 9cddcd343e
+4 -1
View File
@@ -68,10 +68,13 @@ pfUI:RegisterModule("gui", function ()
frame.category = category
frame.config = config
frame.input:SetScript("OnEscapePressed", function(self)
this:GetParent().category[this:GetParent().config] = this:GetText()
this:ClearFocus()
end)
frame.input:SetScript("OnEditFocusLost", function(self)
this:GetParent().category[this:GetParent().config] = this:GetText()
end)
return frame
end