I am trying to simulate a press on a textarea without actually pressing the textarea.
Currently I have a button that, when pressed, shows the keyboard and textarea however the LV_EVENT_DEFOCUSED will not work since the textarea has not been pressed.
Trick the program into thinking the textarea is focused so the LV_EVENT_DEFOCUSED event can trigger in the ta_event_cb
This sets focus to the text area which is nice however It does not allow the defocus to trigger when pressing off of the textarea.
I have tried this:
lv_event_send(ta, LV_EVENT_CLICKED, NULL);
Which seems to crash the code.
lv_event_send(ta, LV_EVENT_FOCUSED, NULL);
This compiles but does not do what I would like