scripting: add setFocus(id)

This commit is contained in:
bordun 2021-03-01 10:41:55 +01:00
parent b5446c08ac
commit e9a829b323
4 changed files with 35 additions and 1 deletions

View file

@ -170,6 +170,16 @@ Reference:
----
#### `setFocus(id)`
- `id` (optional): widget `id` as a string
Give focus to a widget (ie input widget).
*Built-in client only*: tells the operating system to give the focus to the client window
----
#### `unfocus()`
*Built-in client only*: tells the operating system to give the focus to the window that was focused before.