kb: use LV_SYMBOL_NEW_LINE as new line

This commit is contained in:
Gabor Kiss-Vamosi
2019-11-02 23:33:25 +01:00
parent 3c662670f0
commit 5222bf92c4
+1 -1
View File
@@ -395,7 +395,7 @@ void lv_kb_def_event_cb(lv_obj_t * kb, lv_event_t event)
/*Add the characters to the text area if set*/
if(ext->ta == NULL) return;
if(strcmp(txt, "Enter") == 0)
if(strcmp(txt, "Enter") == 0 || strcmp(txt, LV_SYMBOL_NEW_LINE) == 0)
lv_ta_add_char(ext->ta, '\n');
else if(strcmp(txt, LV_SYMBOL_LEFT) == 0)
lv_ta_cursor_left(ext->ta);