瀏覽代碼

Merge pull request #106157 from Calinou/doc-acceptdialog-close-on-escape

Clarify the input action that affects `AcceptDialog.dialog_close_on_escape`
Thaddeus Crews 3 月之前
父節點
當前提交
d4793d016f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/AcceptDialog.xml

+ 1 - 1
doc/classes/AcceptDialog.xml

@@ -62,7 +62,7 @@
 			Sets autowrapping for the text in the dialog.
 			Sets autowrapping for the text in the dialog.
 		</member>
 		</member>
 		<member name="dialog_close_on_escape" type="bool" setter="set_close_on_escape" getter="get_close_on_escape" default="true">
 		<member name="dialog_close_on_escape" type="bool" setter="set_close_on_escape" getter="get_close_on_escape" default="true">
-			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]).
 		</member>
 		</member>
 		<member name="dialog_hide_on_ok" type="bool" setter="set_hide_on_ok" getter="get_hide_on_ok" default="true">
 		<member name="dialog_hide_on_ok" type="bool" setter="set_hide_on_ok" getter="get_hide_on_ok" default="true">
 			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.
 			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.