From 4b312528f78b6bf21fcf31dff9b98de1870b9f10 Mon Sep 17 00:00:00 2001 From: chrox Date: Mon, 28 Oct 2013 20:01:44 +0800 Subject: [PATCH] fix lost refresh in inputdialog enter callback --- frontend/ui/widget/inputtext.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/inputtext.lua b/frontend/ui/widget/inputtext.lua index 7e4258424..8eb11ec61 100644 --- a/frontend/ui/widget/inputtext.lua +++ b/frontend/ui/widget/inputtext.lua @@ -99,7 +99,7 @@ end function InputText:addChar(char) if self.enter_callback and char == '\n' then - UIManager:scheduleIn(0.1, function() self.enter_callback() end) + UIManager:scheduleIn(0.3, function() self.enter_callback() end) return end table.insert(self.charlist, self.charpos, char)