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
This commit is contained in:
Subodh Kumar 2016-02-23 20:33:24 +09:00 committed by Hermet Park
parent b08c67580e
commit 12480dcc6f
1 changed files with 2 additions and 1 deletions

View File

@ -1169,11 +1169,12 @@ _elm_entry_elm_widget_on_focus(Eo *obj, Elm_Entry_Data *sd, Elm_Object_Item *ite
Evas_Object *top;
Eina_Bool top_is_win = EINA_FALSE;
if (!sd->editable) return EINA_FALSE;
top = elm_widget_top_get(obj);
if (top && eo_isa(top, ELM_WIN_CLASS))
top_is_win = EINA_TRUE;
if (!sd->editable) return EINA_FALSE;
if (elm_widget_focus_get(obj))
{
evas_object_focus_set(sd->entry_edje, EINA_TRUE);