From 6635a98393c4697ca0ed8f2ccc489f115a902cfc Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 1 Jun 2016 23:40:40 +0900 Subject: [PATCH] ctxpopup: block whole area if the editor ctxpopup is activated. Since enventor allowed user to touch outer of editor while its ctxpopup is activated, the context could be broken. Block whole area and prevent the context break. @fix T3752 --- src/lib/ctxpopup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ctxpopup.c b/src/lib/ctxpopup.c index 773def3..262cd02 100644 --- a/src/lib/ctxpopup.c +++ b/src/lib/ctxpopup.c @@ -787,7 +787,8 @@ ctxpopup_img_preview_create(edit_data *ed, Evas_Smart_Cb ctxpopup_relay_cb) { //create ctxpopup - Evas_Object *ctxpopup = elm_ctxpopup_add(edit_obj_get(ed)); + Evas_Object *win = elm_object_top_widget_get(edit_obj_get(ed)); + Evas_Object *ctxpopup = elm_ctxpopup_add(win); if (!ctxpopup) return NULL; elm_config_focus_autoscroll_mode_set(ELM_FOCUS_AUTOSCROLL_MODE_NONE); @@ -861,7 +862,8 @@ ctxpopup_candidate_list_create(edit_data *ed, attr_value *attr, Enventor_Ctxpopup_Type *type) { //create ctxpopup - Evas_Object *ctxpopup = elm_ctxpopup_add(edit_obj_get(ed)); + Evas_Object *win = elm_object_top_widget_get(edit_obj_get(ed)); + Evas_Object *ctxpopup = elm_ctxpopup_add(win); if (!ctxpopup) return NULL; elm_config_focus_autoscroll_mode_set(ELM_FOCUS_AUTOSCROLL_MODE_NONE);