tabview: on FOCUS preselect the currently active tab

This commit is contained in:
Gabor Kiss-Vamosi
2019-10-11 14:43:29 +02:00
parent 92b9141788
commit 641117e896

View File

@@ -746,6 +746,8 @@ static lv_res_t lv_tabview_signal(lv_obj_t * tabview, lv_signal_t sign, void * p
}
if(sign == LV_SIGNAL_FOCUS) {
lv_btnm_set_pressed(ext->btns, ext->tab_cur);
lv_indev_type_t indev_type = lv_indev_get_type(lv_indev_get_act());
/*With ENCODER select the first button only in edit mode*/
if(indev_type == LV_INDEV_TYPE_ENCODER) {