1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

skip objects in groups if they are in disabled state

This commit is contained in:
Gabor Kiss-Vamosi 2020-10-09 10:34:02 +02:00
parent 5d91c24723
commit 56c4cab228
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
- Fix imgbtn state change
- Support RTL in table (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)

View File

@ -488,8 +488,9 @@ static void focus_next_core(lv_group_t * group, void * (*begin)(const lv_ll_t *)
can_move = true;
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;
}