From 3168fd4c56a70686f729d1ecd8e383ae6316811c Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 8 May 2025 01:42:26 +0200 Subject: [PATCH] Clarify the input action that affects `AcceptDialog.dialog_close_on_escape` It uses `ui_cancel` behind the scenes, which allows users to add/modify which keys or gamepad buttons are taken into account for this. --- doc/classes/AcceptDialog.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/AcceptDialog.xml b/doc/classes/AcceptDialog.xml index ccbe2ddd555..a5b589842a8 100644 --- a/doc/classes/AcceptDialog.xml +++ b/doc/classes/AcceptDialog.xml @@ -62,7 +62,7 @@ Sets autowrapping for the text in the dialog. - If [code]true[/code], the dialog will be hidden when the escape key ([constant KEY_ESCAPE]) is pressed. + If [code]true[/code], the dialog will be hidden when the [code]ui_cancel[/code] action is pressed (by default, this action is bound to [constant KEY_ESCAPE]). If [code]true[/code], the dialog is hidden when the OK button is pressed. You can set it to [code]false[/code] if you want to do e.g. input validation when receiving the [signal confirmed] signal, and handle hiding the dialog in your own logic.