skip objects in groups if they are in disabled state
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
- Fix imgbtn state change
|
- Fix imgbtn state change
|
||||||
- Support RTL in table (draw columns right to left)
|
- Support RTL in table (draw columns right to left)
|
||||||
- Support RTL in pretty layout (draw columns right to left)
|
- Support RTL in pretty layout (draw columns right to left)
|
||||||
|
- Skip objects in groups if they are in disabled state
|
||||||
|
|
||||||
## v7.6.1 (06.10.2020)
|
## v7.6.1 (06.10.2020)
|
||||||
|
|
||||||
|
|||||||
@@ -488,8 +488,9 @@ static void focus_next_core(lv_group_t * group, void * (*begin)(const lv_ll_t *)
|
|||||||
can_move = true;
|
can_move = true;
|
||||||
|
|
||||||
if(obj_next == NULL) continue;
|
if(obj_next == NULL) continue;
|
||||||
|
if(lv_obj_get_state(*obj_next, LV_OBJ_PART_MAIN) & LV_STATE_DISABLED) continue;
|
||||||
|
|
||||||
/*Hidden objects don't receive focus*/
|
/*Hidden and disabled objects don't receive focus*/
|
||||||
if(!lv_obj_get_hidden(*obj_next)) break;
|
if(!lv_obj_get_hidden(*obj_next)) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user