tabview: on FOCUS preselect the currently active tab
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user