list: call "selected" callback after set focus to the selected item
in current code, when a list item is selected, "selected" callback is called first and then focus is set to the item. this is a problem if another widget, popup for instance, is created on top of the list in the callback function. in such a case, the popup should get focused (not the list item). this patch fixes it by changing the order. @fix
This commit is contained in:
parent
be06709712
commit
6ce0f6b4b2
|
@ -2729,8 +2729,8 @@ elm_list_item_selected_set(Elm_Object_Item *it,
|
|||
}
|
||||
}
|
||||
_item_highlight(item);
|
||||
_item_select(item);
|
||||
elm_object_item_focus_set((Elm_Object_Item *)item, EINA_TRUE);
|
||||
_item_select(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue