浏览代码

Merge pull request #67677 from rsubtil/doc_popupmenu

Document PopupMenu "id_pressed" behavior
Max Hilbrunner 2 年之前
父节点
当前提交
09f4ec7988
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      doc/classes/PopupMenu.xml

+ 2 - 0
doc/classes/PopupMenu.xml

@@ -533,6 +533,8 @@
 			<param index="0" name="id" type="int" />
 			<description>
 				Emitted when an item of some [param id] is pressed or its accelerator is activated.
+
+				[b]Note:[/b] If [param id] is negative (either explicitly or due to overflow), this will return the correponding index instead.
 			</description>
 		</signal>
 		<signal name="index_pressed">