forked from enlightenment/efl
elm_list.c: Added a real support for ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL for list.
This was missed in a8efd7676eb95378355f4d603ddff938279703af.
This commit is contained in:
parent
e35de516b9
commit
827535158d
|
@ -1296,15 +1296,25 @@ _mouse_up_cb(void *data,
|
||||||
|
|
||||||
if (sd->multi)
|
if (sd->multi)
|
||||||
{
|
{
|
||||||
if (!it->selected)
|
if (((sd->multi_select_mode != ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL) ||
|
||||||
|
(evas_key_modifier_is_set(ev->modifiers, "Control"))))
|
||||||
{
|
{
|
||||||
_item_highlight(it);
|
if (!it->selected)
|
||||||
_item_select(it);
|
{
|
||||||
|
_item_highlight(it);
|
||||||
|
_item_select(it);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_item_unhighlight(it);
|
||||||
|
_item_unselect(it);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_item_unhighlight(it);
|
_item_unhighlight(it);
|
||||||
_item_unselect(it);
|
if (it->selected)
|
||||||
|
_item_unselect(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue