diff options
author | abdulleh Ghujeh <a.ghujeh@samsung.com> | 2019-08-28 15:04:51 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-05 11:17:06 +0200 |
commit | dd440c9f68b5f231a8099d0dfa5e38fd23e2156b (patch) | |
tree | 5392898ee7489ce839a22b6ccd2278d10734da19 | |
parent | ab2132f8deab59f8ae11c5d5bde33cc8fe86380d (diff) |
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
-rw-r--r-- | src/lib/elementary/efl_ui_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index 4e7004f02b..7b29f3e41e 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c | |||
@@ -3985,8 +3985,8 @@ _efl_ui_text_selection_changed_cb(void *data, const Efl_Event *event EINA_UNUSED | |||
3985 | if (!text || (text[0] == '\0')) | 3985 | if (!text || (text[0] == '\0')) |
3986 | { | 3986 | { |
3987 | _edje_signal_emit(sd, "selection,cleared", "efl.text"); | 3987 | _edje_signal_emit(sd, "selection,cleared", "efl.text"); |
3988 | sd->have_selection = EINA_FALSE; | ||
3989 | _selection_clear(data, 0); | 3988 | _selection_clear(data, 0); |
3989 | sd->have_selection = EINA_FALSE; | ||
3990 | } | 3990 | } |
3991 | else | 3991 | else |
3992 | { | 3992 | { |