lv_textarea: send event when Enter is pressed in one-line mode
@@ -1468,6 +1468,8 @@ static lv_res_t lv_textarea_signal(lv_obj_t * ta, lv_signal_t sign, void * param
lv_textarea_set_cursor_pos(ta, 0);
else if(c == LV_KEY_END)
lv_textarea_set_cursor_pos(ta, LV_TEXTAREA_CURSOR_LAST);
+ else if(c == LV_KEY_ENTER && lv_textarea_get_one_line(ta))
+ lv_event_send(ta, LV_EVENT_APPLY, NULL);
else {
lv_textarea_add_char(ta, c);
}
