forked from enlightenment/efl
genlist : arrange focus set in mouse up
Summary : when mouse up happens, item must be focused, and after that, select must be called. current logic, focus is already called inside the select function and again focus set is called in the end of mouse_up, so if user new focused widget inside the select callback, mouse_up forcely take the focus into the item again. select callback should comes after the focus callback calls to work properly. @fix
This commit is contained in:
parent
3b68135baf
commit
c5427e875d
|
@ -4950,6 +4950,9 @@ _item_mouse_up_cb(void *data,
|
|||
|
||||
evas_object_ref(sd->obj);
|
||||
|
||||
if (sd->focused_item != EO_OBJ(it))
|
||||
elm_object_item_focus_set(EO_OBJ(it), EINA_TRUE);
|
||||
|
||||
if (sd->multi &&
|
||||
((sd->multi_select_mode != ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL) ||
|
||||
(evas_key_modifier_is_set(ev->modifiers, "Control"))))
|
||||
|
@ -4989,9 +4992,6 @@ _item_mouse_up_cb(void *data,
|
|||
if (_item_select(it)) goto deleted;
|
||||
}
|
||||
|
||||
if (sd->focused_item != EO_OBJ(it))
|
||||
elm_object_item_focus_set(EO_OBJ(it), EINA_TRUE);
|
||||
|
||||
deleted:
|
||||
evas_object_unref(sd->obj);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue