Merge pull request #136 from chenshijianworkgit/beta
fix keyboard cursor management invalid
This commit is contained in:
@@ -186,7 +186,12 @@ void lv_kb_set_cursor_manage(lv_obj_t * kb, bool en)
|
|||||||
if(ext->ta) {
|
if(ext->ta) {
|
||||||
lv_cursor_type_t cur_type;
|
lv_cursor_type_t cur_type;
|
||||||
cur_type = lv_ta_get_cursor_type(ext->ta);
|
cur_type = lv_ta_get_cursor_type(ext->ta);
|
||||||
lv_ta_set_cursor_type(ext->ta, cur_type & (~LV_CURSOR_HIDDEN));
|
|
||||||
|
if(ext->cursor_mng){
|
||||||
|
lv_ta_set_cursor_type(ext->ta, cur_type & (~LV_CURSOR_HIDDEN));
|
||||||
|
}else{
|
||||||
|
lv_ta_set_cursor_type(ext->ta, cur_type | LV_CURSOR_HIDDEN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user