From 5c9ced191b89436b50739bbc87d1d5de6e6d090f Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 4 Apr 2022 01:24:01 +0200 Subject: [PATCH] Mention that grab_focus is more reliable deferred (cherry picked from commit 188d5593e1f080181a6e0302b7d54416d2cd96e8) --- doc/classes/Control.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 3b40e4ce882..7314b62fddd 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -395,6 +395,7 @@ 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].