forked from enlightenment/efl
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:
parent
ab2132f8de
commit
dd440c9f68
|
@ -3985,8 +3985,8 @@ _efl_ui_text_selection_changed_cb(void *data, const Efl_Event *event EINA_UNUSED
|
||||||
if (!text || (text[0] == '\0'))
|
if (!text || (text[0] == '\0'))
|
||||||
{
|
{
|
||||||
_edje_signal_emit(sd, "selection,cleared", "efl.text");
|
_edje_signal_emit(sd, "selection,cleared", "efl.text");
|
||||||
sd->have_selection = EINA_FALSE;
|
|
||||||
_selection_clear(data, 0);
|
_selection_clear(data, 0);
|
||||||
|
sd->have_selection = EINA_FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue