I’m using lvgl with four hardware buttons (configured as encoder NEXT/PREV/ENTER + LV_KEY_ESC as “back” button). I do some special handling of the LV_KEY_ESC events to get the desired menu behavior. Works fine except for one annoying thing…
I catch the LV_KEY_ESC events with a callback on various widgets. The callback event (LV_EVENT_KEY) is triggered after the widget’s own actions on that key (by the way, can that be disabled alltogether?). The switch behavior on LV_KEY_ESC is a bouncy on/off/on toggle. What is the meaning of this?
The same bouncy on/off/on or off/on/off is observed running any emulator or MicroPython.