forked from enlightenment/efl
entry: send focus/unfocus signals to scroller interface
In case of scrollable entry, send focus/unfocus signals to scroller interface edje.
This commit is contained in:
parent
9032eb1c3c
commit
32c64f5d6c
|
@ -858,7 +858,11 @@ _elm_entry_elm_widget_theme_apply(Eo *obj, Elm_Entry_Data *sd)
|
|||
evas_object_ref(obj);
|
||||
|
||||
if (elm_widget_focus_get(obj))
|
||||
edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm");
|
||||
{
|
||||
edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm");
|
||||
if (sd->scroll)
|
||||
edje_object_signal_emit(sd->scr_edje, "elm,action,focus", "elm");
|
||||
}
|
||||
|
||||
edje_object_message_signal_process(sd->entry_edje);
|
||||
|
||||
|
@ -1179,6 +1183,9 @@ _elm_entry_elm_widget_on_focus(Eo *obj, Elm_Entry_Data *sd, Elm_Object_Item *ite
|
|||
{
|
||||
evas_object_focus_set(sd->entry_edje, EINA_TRUE);
|
||||
edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm");
|
||||
if (sd->scroll)
|
||||
edje_object_signal_emit(sd->scr_edje, "elm,action,focus", "elm");
|
||||
|
||||
if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand &&
|
||||
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
|
||||
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
|
||||
|
@ -1191,6 +1198,8 @@ _elm_entry_elm_widget_on_focus(Eo *obj, Elm_Entry_Data *sd, Elm_Object_Item *ite
|
|||
else
|
||||
{
|
||||
edje_object_signal_emit(sd->entry_edje, "elm,action,unfocus", "elm");
|
||||
if (sd->scroll)
|
||||
edje_object_signal_emit(sd->scr_edje, "elm,action,unfocus", "elm");
|
||||
evas_object_focus_set(sd->entry_edje, EINA_FALSE);
|
||||
if (top && top_is_win && sd->input_panel_enable &&
|
||||
!edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
|
||||
|
|
Loading…
Reference in New Issue