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
public function show( public function show(
?string $placeholder = null, ?string $placeholder = null,
?bool $visible = null ?bool $visible = null,
bool $focus = true
): void ): void
{ {
if ($focus)
{
$this->query->gtk->grab_focus();
}
if (!is_null($placeholder)) if (!is_null($placeholder))
{ {
$this->query->setPlaceholder( $this->query->setPlaceholder(

Loading…
Cancel
Save