TextArea missing LV_EVENT_INSERT

What do you want to achieve?

Add LV_EVENT_INSERT for TextArea

What have you tried so far?

N/A

Screenshot or video

N/A

Others

  • SquareLine Studio version: Latest
  • Operating system: Windows 01
  • Target hardware: STM32

I noticed that SLS does not include LV_EVENT_INSERT, which executes a callback before a character is inserted into the TextArea. This is needed to do preprocessing of the textarea field such as highlighting text, clear all content inside TextArea before a new character is set, etc…

Right now, I’m binding these inside a SCREEN_LOADED event, but would like SLS to officially support this event since SLS uses LV_EVENT_ALL in the background to handle all events, and doing it my way will fire off multiple callbacks.

Hi, thank you for your suggestion! We’ve added this feature request to our development list, and we expect to include LV_EVENT_INSERT support for TextArea in the next version.

1 Like