mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
set focus on query
This commit is contained in:
parent
1336e844ff
commit
ea776cac56
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue