Focus on roller object problem


in a group of two object (one image button, one roller object) when using lv_group_focus_obj on Roller Object, when it gets focus, it’s click event asserted in advance by focusing, how to solve this problem

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?

V 8.3

What do you want to achieve?

Focusing on roller in a group without automatic event asserting until it gets OK Button.

What have you tried so far?

by changing the focus Object to Image Button it works without any problem

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*void DashBoardScreenSettingsImgCLICKED(lv_event_t *e) {

	lv_group_set_editing(g, false);

	lv_group_focus_freeze(g, false);


	lv_obj_add_flag(ui_DashBoardPanel, LV_OBJ_FLAG_HIDDEN);

	lv_obj_clear_flag(ui_HeaderPanel, LV_OBJ_FLAG_HIDDEN);

	lv_obj_clear_flag(ui_MenuPanel, LV_OBJ_FLAG_HIDDEN);

	lv_obj_clear_flag(ui_MenuRoller, LV_OBJ_FLAG_HIDDEN);

	lv_group_add_obj(g, ui_HeaderGuageImg);

	lv_group_add_obj(g, ui_MenuRoller);

	lv_obj_add_state(ui_HeaderGuageImg, LV_STATE_FOCUS_KEY);

	lv_obj_add_state(ui_MenuRoller, LV_STATE_FOCUS_KEY);

	lv_roller_set_selected(ui_MenuRoller, 0, LV_ANIM_OFF);


	SettingsF = true;

Screenshot and/or video