From c840091f6279f2d130e80124f20fdc5a7ac45226 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 1 Aug 2024 22:05:25 +0300 Subject: [PATCH] grab focus on first widget --- src/Entity/Browser/Menu/Help/About.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Entity/Browser/Menu/Help/About.php b/src/Entity/Browser/Menu/Help/About.php index 5391bfb5..665c9ed9 100644 --- a/src/Entity/Browser/Menu/Help/About.php +++ b/src/Entity/Browser/Menu/Help/About.php @@ -173,6 +173,13 @@ class About // Tune up the label if ($label = $dialog->get_message_area()->get_children()) { + if (empty($label[0])) + { + throw new Exception; + } + + $label[0]->grab_focus(); + if (empty($label[1])) { throw new Exception;