summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2016-02-23 20:33:24 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-02-23 20:33:24 +0900
commit25f05848ccfc087450ae6bea1da5e1d344e4743d (patch)
treeae2012ddaf2ac5118c6b3b972967732858b938f0
parenta20618b45fc32de53fa3af7175e55fa2d6c7223e (diff)
Elm entry: No use of top object if not editable.
Summary: No use of top object if not editable. Reviewers: cedric, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D3719
-rw-r--r--src/lib/elm_entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 3e057b88c..316584734 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -1169,11 +1169,12 @@ _elm_entry_elm_widget_on_focus(Eo *obj, Elm_Entry_Data *sd, Elm_Object_Item *ite
1169 Evas_Object *top; 1169 Evas_Object *top;
1170 Eina_Bool top_is_win = EINA_FALSE; 1170 Eina_Bool top_is_win = EINA_FALSE;
1171 1171
1172 if (!sd->editable) return EINA_FALSE;
1173
1172 top = elm_widget_top_get(obj); 1174 top = elm_widget_top_get(obj);
1173 if (top && eo_isa(top, ELM_WIN_CLASS)) 1175 if (top && eo_isa(top, ELM_WIN_CLASS))
1174 top_is_win = EINA_TRUE; 1176 top_is_win = EINA_TRUE;
1175 1177
1176 if (!sd->editable) return EINA_FALSE;
1177 if (elm_widget_focus_get(obj)) 1178 if (elm_widget_focus_get(obj))
1178 { 1179 {
1179 evas_object_focus_set(sd->entry_edje, EINA_TRUE); 1180 evas_object_focus_set(sd->entry_edje, EINA_TRUE);