From 9cddcd343ec78d58e3b0276a9a65f522dbef8df5 Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Tue, 17 May 2016 00:16:35 +0200 Subject: [PATCH] fix "save" behaviour of input fields --- modules/gui.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui.lua b/modules/gui.lua index 9e5afc72..a6373d42 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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