matrix/keyboard: id variable in script is now the id of the child widget that triggered the event

This commit is contained in:
bordun 2020-11-03 10:01:14 +01:00
parent 42f316cf81
commit cfcf22b9dd
5 changed files with 25 additions and 19 deletions

View file

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