mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +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:
parent
bc90ebe72d
commit
0afa27d5c3
@ -1224,7 +1224,6 @@ static void ta_event_cb(lv_event_t * e)
|
||||
else if(code == LV_EVENT_READY || code == LV_EVENT_CANCEL) {
|
||||
lv_obj_set_height(tv, LV_VER_RES);
|
||||
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*/
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user