summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-02-26 19:55:31 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-02-26 20:00:12 +0530
commitd6525a9c0ea58915a21362c2bce67117280151a5 (patch)
tree7a76e795def33688432d3a9dd619f791aad07d54
parent1018bcca27dafb04b5002da8094d5704396e5d2d (diff)
entry: send focus/unfocus signals to scroller interface
In case of scrollable entry, send focus/unfocus signals to scroller interface edje.
-rw-r--r--src/lib/elm_entry.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 316584734..e22fe464d 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -858,7 +858,11 @@ _elm_entry_elm_widget_theme_apply(Eo *obj, Elm_Entry_Data *sd)
858 evas_object_ref(obj); 858 evas_object_ref(obj);
859 859
860 if (elm_widget_focus_get(obj)) 860 if (elm_widget_focus_get(obj))
861 edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm"); 861 {
862 edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm");
863 if (sd->scroll)
864 edje_object_signal_emit(sd->scr_edje, "elm,action,focus", "elm");
865 }
862 866
863 edje_object_message_signal_process(sd->entry_edje); 867 edje_object_message_signal_process(sd->entry_edje);
864 868
@@ -1179,6 +1183,9 @@ _elm_entry_elm_widget_on_focus(Eo *obj, Elm_Entry_Data *sd, Elm_Object_Item *ite
1179 { 1183 {
1180 evas_object_focus_set(sd->entry_edje, EINA_TRUE); 1184 evas_object_focus_set(sd->entry_edje, EINA_TRUE);
1181 edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm"); 1185 edje_object_signal_emit(sd->entry_edje, "elm,action,focus", "elm");
1186 if (sd->scroll)
1187 edje_object_signal_emit(sd->scr_edje, "elm,action,focus", "elm");
1188
1182 if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand && 1189 if (top && top_is_win && sd->input_panel_enable && !sd->input_panel_show_on_demand &&
1183 !edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text")) 1190 !edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
1184 elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON); 1191 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
1191 else 1198 else
1192 { 1199 {
1193 edje_object_signal_emit(sd->entry_edje, "elm,action,unfocus", "elm"); 1200 edje_object_signal_emit(sd->entry_edje, "elm,action,unfocus", "elm");
1201 if (sd->scroll)
1202 edje_object_signal_emit(sd->scr_edje, "elm,action,unfocus", "elm");
1194 evas_object_focus_set(sd->entry_edje, EINA_FALSE); 1203 evas_object_focus_set(sd->entry_edje, EINA_FALSE);
1195 if (top && top_is_win && sd->input_panel_enable && 1204 if (top && top_is_win && sd->input_panel_enable &&
1196 !edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text")) 1205 !edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))