mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 10:46:03 +00:00
fix "save" behaviour of input fields
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user