entry: send focus/unfocus signals to scroller interface
authorAmitesh Singh <amitesh.sh@samsung.com>
Fri, 26 Feb 2016 14:25:31 +0000 (19:55 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Fri, 26 Feb 2016 14:30:12 +0000 (20:00 +0530)
In case of scrollable entry, send focus/unfocus signals to scroller
interface edje.

legacy/elementary/src/lib/elm_entry.c

index 3165847..e22fe46 100644 (file)
@@ -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"))