mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
grab focus on first widget
This commit is contained in:
parent
aff4229d06
commit
c840091f62
1 changed files with 7 additions and 0 deletions
|
|
@ -173,6 +173,13 @@ class About
|
||||||
// Tune up the label
|
// Tune up the label
|
||||||
if ($label = $dialog->get_message_area()->get_children())
|
if ($label = $dialog->get_message_area()->get_children())
|
||||||
{
|
{
|
||||||
|
if (empty($label[0]))
|
||||||
|
{
|
||||||
|
throw new Exception;
|
||||||
|
}
|
||||||
|
|
||||||
|
$label[0]->grab_focus();
|
||||||
|
|
||||||
if (empty($label[1]))
|
if (empty($label[1]))
|
||||||
{
|
{
|
||||||
throw new Exception;
|
throw new Exception;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue