Change screen on LV_KEY events?

What do you want to achieve?

I want to use keypad events in squareline to trigger a screen switch event.

What have you tried so far?

I have implemented a keypad input device that properly recognizes and reports keypad events. An action is registered on the screen object to initiate a screen switch using the LV_KEY_NEXT event as a trigger. The action is not triggered as intended. The callback never is called with the according key event.


I read, that a group object needs to be created to make use of key events. Is that really the case?
This would mean I need to code the screen-switch functionality manually anyway. So it would be easier for me to catch the keyboard event myself and execute the screen transition manually.
What’s the reason that LV_KEY events not reported to the screen object?


SLS supports only the mouse as input device at this moment. We are planning to add support for keyboard in the near future.