From c954a6c9d7c3f151d401f1a68e0164d6b0ab71d5 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 27637b655..8ca8a7a65 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -344,6 +344,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].