From b1712325a7cfcf9e6f802acf279b002d562ba202 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Fri, 14 Dec 2018 16:32:22 -0500 Subject: [PATCH] Fix OK and close button symbols appearing in text area --- lv_objx/lv_kb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lv_objx/lv_kb.c b/lv_objx/lv_kb.c index 7f1fb003c..d0e3cd5ac 100644 --- a/lv_objx/lv_kb.c +++ b/lv_objx/lv_kb.c @@ -430,6 +430,9 @@ static lv_res_t lv_kb_def_action(lv_obj_t * kb, const char * txt) if(res != LV_RES_OK) return res; /*The keyboard might be deleted in the actions*/ + /*If it's the OK or Close button do nothing */ + if((strcmp(txt, SYMBOL_OK) == 0) || (strcmp(txt, SYMBOL_CLOSE) == 0)) return LV_RES_OK; + /*Add the characters to the text area if set*/ if(ext->ta == NULL) return res;