diff options
author | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2017-11-16 18:13:23 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-11-16 18:17:49 +0900 |
commit | 57e0d19c45687454ab8bae53a3c2a1c1b1798b78 (patch) | |
tree | 311189b9863c90c842ad4d4b1bf9a2df43ff3dcb | |
parent | 54657b0a95d867f3222196e606eadd95ed26ee56 (diff) | |
download | efl-57e0d19c45687454ab8bae53a3c2a1c1b1798b78.tar.gz |
elm: return Efl.Access.Actions only if action_area is not set
Summary:
The accessibility clients should not have a possibility
to dismiss popup in case when action area is set.
Reviewers: jpeg
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D5481
-rw-r--r-- | src/lib/elementary/elc_popup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c index 3e142f8d49..b2de973bbd 100644 --- a/src/lib/elementary/elc_popup.c +++ b/src/lib/elementary/elc_popup.c @@ -1788,12 +1788,14 @@ _action_dismiss(Evas_Object *obj, const char *params EINA_UNUSED) } EOLIAN const Efl_Access_Action_Data * -_elm_popup_efl_access_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Popup_Data *pd EINA_UNUSED) +_elm_popup_efl_access_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Popup_Data *pd) { static Efl_Access_Action_Data atspi_actions[] = { { "dismiss", NULL, NULL, _action_dismiss}, { NULL, NULL, NULL, NULL } }; + if (pd->action_area) + return NULL; return &atspi_actions[0]; } |