From 1644751b1a32a3ecc2b4604e4a5a1cb00c7692bd Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 7 Jan 2026 00:39:02 +0300 Subject: [PATCH] fix gui.show_input_dialog key:escape reaction --- res/modules/internal/gui_util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/modules/internal/gui_util.lua b/res/modules/internal/gui_util.lua index f9b29c193..894ca1bcc 100644 --- a/res/modules/internal/gui_util.lua +++ b/res/modules/internal/gui_util.lua @@ -161,7 +161,7 @@ function gui.show_input_dialog(text, actual_callback, validator, confirm_text) callback=callback, validator=validator or function() return #text > 0 end }) - input.add_callback("key:escape", callback, gui.root[id]) + input.add_callback("key:escape", function() gui.root[id]:destruct() end, gui.root[id]) input.add_callback("key:enter", callback, gui.root[id]) gui.root[id.."_input"].focused = true end