matrix/keyboard: id variable in script is now the id of the child widget that triggered the event
This commit is contained in:
parent
0adb418303
commit
34b6e0c9cc
5 changed files with 25 additions and 19 deletions
|
|
@ -17,6 +17,9 @@ Depending on what triggered the script's execution, a few variables are availabl
|
|||
- `value`: widget's value
|
||||
- `touch`: see [Touch state](#touch-state)
|
||||
|
||||
??? infos "Keyboard & Matrix"
|
||||
In keyboards and matrices, `id` is the id of the child widget that triggered the event.
|
||||
|
||||
**Event: keyboard** (script widget only)
|
||||
|
||||
- `type` (`string`): `keydown` or `keyup`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue