-
-
Notifications
You must be signed in to change notification settings - Fork 180
Description
Describe the bug
If the "selected" property of a roller or dropdown widget is assigned to a local or global variable, it doesn't seem to be possible to control the widget by keyboard or encoder input anymore. Mouse and touch input still work.
My expectation would be that the connection to the assigned variable is bidirectional and changing the variable changes the widget, while controlling the widget changes the variable. This is how it works for widgets like sliders.
Is it possible, as a workaround, to get the selected item of roller using a flow expression? As far as I understand, making it an assigned property is the only way to get the data.
To Reproduce
Steps to reproduce the behavior:
- Create a roller or dropdown and assign it to a group that is controllable via keyboard/encoder
- Test input -> widget is controllable by keyboard, encoder, mouse, and touch
- Create a variable
- Switch the "Selected" property to "Assignable" and set it to the variable
- Test keyboard/encoder input -> widget receives input but immediately jumps back to old value
- Test mouse/touch input -> still works
The jumping back is visible for a dropdown, while the roller doesn't react at all. Even sending key events directly to the widget does not work anymore.
Desktop (please complete the following information):
- EEZ Studio version 0.24.0 on Windows
** LVGL version (if used)**
- 9.x