rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=d8b375de25a44b55b783b8499426bd903e4bd809
commit d8b375de25a44b55b783b8499426bd903e4bd809 Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Wed Jul 6 11:50:31 2016 +0300 properties: block shortcuts when combobox is expanded --- src/bin/ui/property/property_common.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/bin/ui/property/property_common.c b/src/bin/ui/property/property_common.c index 00cb698..fee828b 100644 --- a/src/bin/ui/property/property_common.c +++ b/src/bin/ui/property/property_common.c @@ -297,6 +297,22 @@ _combobox_item_pressed_cb(void *data __UNUSED__, Evas_Object *obj, elm_entry_cursor_end_set(obj); } +static void +_combobox_expanded_cb(void *data __UNUSED__, + Evas_Object *obj, + void *event_info __UNUSED__) +{ + shortcuts_object_push(obj); +} + +static void +_combobox_dismissed_cb(void *data __UNUSED__, + Evas_Object *obj, + void *event_info __UNUSED__) +{ + shortcuts_object_check_pop(obj); +} + static Evas_Object * _control_create(Property_Attribute *pa, Property_Action *action, Evas_Object *parent) { @@ -325,8 +341,9 @@ _control_create(Property_Attribute *pa, Property_Action *action, Evas_Object *pa itc->func.text_get = _combobox_text_get; itc->func.del = _combobox_item_del; evas_object_data_set(content, "COMMON_ITC", itc); - evas_object_smart_callback_add(content, "item,pressed", - _combobox_item_pressed_cb, pa); + evas_object_smart_callback_add(content, "item,pressed", _combobox_item_pressed_cb, pa); + evas_object_smart_callback_add(content, "expanded", _combobox_expanded_cb, pa); + evas_object_smart_callback_add(content, "dismissed", _combobox_dismissed_cb, pa); break; case PROPERTY_CONTROL_COMBOBOX_CC: COMBOBOX_ADD(parent, content); --