Message box modal lock focus

Description

How to make the only selectable element button on message box

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

Embedded linux

What LVGL version are you using?

8 master (latest)

What do you want to achieve?

How to make the only selectable element the button/s on message box

What have you tried so far?

When message box is in modal mode also the object outside (on the screen) the messagebox are selectable. On the simulator, using the mouse as input the message box modal works fine, but if TAB is pressed the selection cycle trought other objects.

Code to reproduce

The code block(s) should be formatted like:

	/*Create a list*/

	list1 = lv_list_create(lv_scr_act());
	lv_obj_set_size(list1, 320, 240);
	lv_obj_center(list1);

	//Add buttons to the list
	lv_obj_t *btn;
	
	btn = lv_list_add_btn(list1, LV_SYMBOL_FILE, "STATUS");
	lv_obj_add_event_cb(btn, event_handler, LV_EVENT_CLICKED, NULL);		
	
	btn = lv_list_add_btn(list1, LV_SYMBOL_DIRECTORY, "PARAMETERS");
	lv_obj_add_event_cb(btn, event_handler, LV_EVENT_CLICKED, NULL);	
	
	btn = lv_list_add_btn(list1, LV_SYMBOL_SAVE, "NETWORK");
	lv_obj_add_event_cb(btn, event_handler, LV_EVENT_CLICKED, NULL);	
	
	btn = lv_list_add_btn(list1, LV_SYMBOL_CLOSE, "SERVICE");
	lv_obj_add_event_cb(btn, event_handler, LV_EVENT_CLICKED, NULL);	

    static const char* btns[] = { "Close", "" };
    lv_obj_t* msgbox = lv_msgbox_create(NULL, "", "Login failed: wrong password.", btns, true);
    lv_obj_add_event_cb(msgbox, msgbox_event_cb, LV_EVENT_VALUE_CHANGED, NULL);
    lv_obj_center(msgbox);


Screenshot and/or video

messagebox

Did you find an easy way to solve this? I guess the only solution is to reset the object group, then restore it back when the message is dismissed.