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.
This commit is contained in:
Jean-Philippe Andre 2016-08-03 18:08:31 +09:00
parent 19eb7b727f
commit 9b2980e1b1
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
/**