From a02338e72f0b643d62acf8c699dd16d4730c1a6b Mon Sep 17 00:00:00 2001 From: carepayer Date: Wed, 31 May 2023 19:26:21 +0800 Subject: [PATCH] fix(ime_pinyin): keep cursor in the textarea when pressing a button in the candidate panel(#4264) --- src/others/ime/lv_ime_pinyin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/others/ime/lv_ime_pinyin.c b/src/others/ime/lv_ime_pinyin.c index 33afe16ec..d3029ae95 100644 --- a/src/others/ime/lv_ime_pinyin.c +++ b/src/others/ime/lv_ime_pinyin.c @@ -577,6 +577,7 @@ static void lv_ime_pinyin_constructor(const lv_obj_class_t * class_p, lv_obj_t * lv_obj_add_flag(pinyin_ime->cand_panel, LV_OBJ_FLAG_HIDDEN); lv_btnmatrix_set_one_checked(pinyin_ime->cand_panel, true); + lv_obj_clear_flag(pinyin_ime->cand_panel, LV_OBJ_FLAG_CLICK_FOCUSABLE); /* Set cand_panel style*/ // Default style