Browse Source

set focus on query

PHP-GTK3
yggverse 4 months ago
parent
commit
ea776cac56
  1. 8
      src/Entity/Browser/Container/Tab/Page/Response.php

8
src/Entity/Browser/Container/Tab/Page/Response.php

@ -81,9 +81,15 @@ class Response @@ -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(

Loading…
Cancel
Save