浏览代码

Mention that grab_focus is more reliable deferred

(cherry picked from commit 188d5593e1f080181a6e0302b7d54416d2cd96e8)
kobewi 3 年之前
父节点
当前提交
5c9ced191b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/Control.xml

+ 1 - 0
doc/classes/Control.xml

@@ -395,6 +395,7 @@
 			<return type="void" />
 			<return type="void" />
 			<description>
 			<description>
 				Steal the focus from another control and become the focused control (see [member focus_mode]).
 				Steal the focus from another control and become the focused control (see [member focus_mode]).
+				[b]Note[/b]: Using this method together with [method Object.call_deferred] makes it more reliable, especially when called inside [method Node._ready].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="has_color" qualifiers="const">
 		<method name="has_color" qualifiers="const">