set focus on query

This commit is contained in:
yggverse 2024-07-08 02:49:34 +03:00
parent 1336e844ff
commit ea776cac56

View file

@ -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(