Skip to content

[LVGL] If the "selected" property of a roller or dropdown is "assignable", keyboard input doesn't work anymore #857

@CarstenNeubert

Description

@CarstenNeubert

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:

  1. Create a roller or dropdown and assign it to a group that is controllable via keyboard/encoder
  2. Test input -> widget is controllable by keyboard, encoder, mouse, and touch
  3. Create a variable
  4. Switch the "Selected" property to "Assignable" and set it to the variable
  5. Test keyboard/encoder input -> widget receives input but immediately jumps back to old value
  6. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions