forked from enlightenment/enlightenment
parent
36523293d2
commit
54faad046f
|
@ -267,6 +267,7 @@ e_entry_focus(Evas_Object *entry)
|
|||
if (sd->focused)
|
||||
return;
|
||||
|
||||
if ((sd->enabled) && (!sd->noedit))
|
||||
evas_object_focus_set(sd->entry_object, EINA_TRUE);
|
||||
edje_object_signal_emit(sd->entry_object, "e,state,focused", "e");
|
||||
|
||||
|
@ -364,12 +365,15 @@ e_entry_edit(Evas_Object *entry)
|
|||
if (!sd->noedit)
|
||||
return;
|
||||
|
||||
sd->noedit = EINA_FALSE;
|
||||
edje_object_signal_emit(e_scrollframe_edje_object_get(sd->scroll_object),
|
||||
"e,state,edit", "e");
|
||||
edje_object_signal_emit(sd->entry_object, "e,state,edit", "e");
|
||||
if (sd->focused)
|
||||
{
|
||||
edje_object_signal_emit(sd->entry_object, "e,action,show,cursor", "e");
|
||||
sd->noedit = EINA_FALSE;
|
||||
evas_object_focus_set(sd->entry_object, EINA_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -389,11 +393,11 @@ e_entry_noedit(Evas_Object *entry)
|
|||
if (sd->noedit)
|
||||
return;
|
||||
|
||||
sd->noedit = EINA_TRUE;
|
||||
edje_object_signal_emit(e_scrollframe_edje_object_get(sd->scroll_object),
|
||||
"e,state,noedit", "e");
|
||||
edje_object_signal_emit(sd->entry_object, "e,state,noedit", "e");
|
||||
edje_object_signal_emit(sd->entry_object, "e,action,hide,cursor", "e");
|
||||
sd->noedit = EINA_TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue