From ea776cac5618244beb3b920fb192eee449bdcede Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 8 Jul 2024 02:49:34 +0300 Subject: [PATCH] set focus on query --- src/Entity/Browser/Container/Tab/Page/Response.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Entity/Browser/Container/Tab/Page/Response.php b/src/Entity/Browser/Container/Tab/Page/Response.php index 86aa94db..3396723d 100644 --- a/src/Entity/Browser/Container/Tab/Page/Response.php +++ b/src/Entity/Browser/Container/Tab/Page/Response.php @@ -81,9 +81,15 @@ class Response public function show( ?string $placeholder = null, - ?bool $visible = null + ?bool $visible = null, + bool $focus = true ): void { + if ($focus) + { + $this->query->gtk->grab_focus(); + } + if (!is_null($placeholder)) { $this->query->setPlaceholder(