aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-03 18:08:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-03 18:08:31 +0900
commit9b2980e1b1bd1d7fd16c34b8f96b14a782926447 (patch)
treef1adcf13ddcd17dc1fa408f61c86145c894110b6
parentglx: Fix black windows in E on nvidia (diff)
downloadefl-9b2980e1b1bd1d7fd16c34b8f96b14a782926447.tar.gz
widget: Fix propagation of events on hold
Because of the translation between legacy and eo key events, the on_hold flag state could sometimes be lost. Symptom: elementary_test -to Focus Click on a button inside the scroller Up/down would jump to the end of the scroller, rather than the next button. Thanks a lot to Woohyeon for the very good bug report.
-rw-r--r--src/lib/elementary/elm_widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index fe56a87ab4..18e38daa53 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -783,6 +783,8 @@ _propagate_event(void *data EINA_UNUSED, const Eo_Event *event)
return;
elm_widget_event_propagate(obj, type, &event_info, event_flags);
+ if (*event_flags & EVAS_EVENT_FLAG_ON_HOLD)
+ efl_event_processed_set(event->info, EINA_TRUE);
}
/**