elementary entry: support legacy focused/unfocused callback calls
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 14 May 2018 05:06:41 +0000 (14:06 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Fri, 8 Jun 2018 10:49:28 +0000 (19:49 +0900)
It is needed to replace focus callbacks of reverted new focus feature.

@tizen_fix

Change-Id: Iffed6f8e09a636575b83ab61b93fb956a2480046

src/lib/elementary/elm_entry.c

index 60fdc03..b91d03d 100644 (file)
@@ -1770,6 +1770,9 @@ _elm_entry_focus_update(Eo *obj, Elm_Entry_Data *sd)
         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);
+        /* TIZEN_ONLY(20180514): support legacy focused/unfocused callback calls */
+        evas_object_smart_callback_call(obj, "focused", NULL);
+        /* END */
         if (_elm_atspi_enabled())
           efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_TRUE);
         _return_key_enabled_check(obj);
@@ -1808,6 +1811,9 @@ _elm_entry_focus_update(Eo *obj, Elm_Entry_Data *sd)
         if (top && top_is_win && sd->input_panel_enable &&
             !edje_object_part_text_imf_context_get(sd->entry_edje, "elm.text"))
           elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
+        /* TIZEN_ONLY(20180514): support legacy focused/unfocused callback calls */
+        evas_object_smart_callback_call(obj, "unfocused", NULL);
+        /* END */
         if (_elm_atspi_enabled())
           efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_FALSE);