efl_ui_text: EFL_UI_EVENT_SELECTION_CLEARED not called

-Add a callback to ui_text for event EFL_UI_EVENT_SELECTION_CLEARED
-Select any text in the ui_text
-Clear selection by clicking any area by mouse or pressing arrows in keyboard
-The selection get cleared but the callback will never be called.

Reviewed-by: Tom Hacohen <tom@stosb.com>
Differential Revision: https://phab.enlightenment.org/D9771
This commit is contained in:
abdulleh Ghujeh 2019-08-28 15:04:51 +00:00 committed by Marcel Hollerbach
parent ab2132f8de
commit dd440c9f68
1 changed files with 1 additions and 1 deletions

View File

@ -3985,8 +3985,8 @@ _efl_ui_text_selection_changed_cb(void *data, const Efl_Event *event EINA_UNUSED
if (!text || (text[0] == '\0'))
{
_edje_signal_emit(sd, "selection,cleared", "efl.text");
sd->have_selection = EINA_FALSE;
_selection_clear(data, 0);
sd->have_selection = EINA_FALSE;
}
else
{