mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
fix(widgets demo): improve soft keyboard usability
Related to https://forum.lvgl.io/t/problem-about-the-textarea-focus/9955/3
This commit is contained in:
@@ -1224,7 +1224,6 @@ static void ta_event_cb(lv_event_t * e)
|
|||||||
else if(code == LV_EVENT_READY || code == LV_EVENT_CANCEL) {
|
else if(code == LV_EVENT_READY || code == LV_EVENT_CANCEL) {
|
||||||
lv_obj_set_height(tv, LV_VER_RES);
|
lv_obj_set_height(tv, LV_VER_RES);
|
||||||
lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN);
|
lv_obj_add_flag(kb, LV_OBJ_FLAG_HIDDEN);
|
||||||
lv_obj_clear_state(ta, LV_STATE_FOCUSED);
|
|
||||||
lv_indev_reset(NULL, ta); /*To forget the last clicked object to make it focusable again*/
|
lv_indev_reset(NULL, ta); /*To forget the last clicked object to make it focusable again*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user