Problem
Items like textarea don’t have functionality or required events to control changes before them happening. for example if i want to do something when i press LV_KEY_RIGHT at the end of string inside a text area. problem is if i check it in LV_EVENT_READY or LV_EVENT_KEY , then i cannot check if i got to end of string with RIGHT key or was at the end of it before pressing the button.
doing it through indev will make it super complicated when making a multi page program with a bunch of custom widgets.
TNX for the amazing library.
Proposal
I have a few suggestions.
1- We really need a event system on groups. i really like to have events when adding or removing objects or sending KEY events to its focused child. i would be super helpful.
2- This one is the way i made it right now. i call an event at start of processing LV_EVENT_KEY inside the lv_textarea.c . wirks for now but i know that for some newbie like me changing the library is dangerous.
3- double event-ing the events. then it would help us detect them and handle them before and after them receiving it.some events at start of processes in addition to the ones that happen at the end would be lovely.