mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +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(
|
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…
Add table
Add a link
Reference in a new issue