From 32c64f5d6cec6a3169c98ca894cc5d20fd6308df Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Fri, 26 Feb 2016 19:55:31 +0530 Subject: [PATCH] entry: send focus/unfocus signals to scroller interface In case of scrollable entry, send focus/unfocus signals to scroller interface edje. --- legacy/elementary/src/lib/elm_entry.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 3165847..e22fe46 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -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")) -- 2.7.4