jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=57e0d19c45687454ab8bae53a3c2a1c1b1798b78

commit 57e0d19c45687454ab8bae53a3c2a1c1b1798b78
Author: Lukasz Stanislawski <[email protected]>
Date:   Thu Nov 16 18:13:23 2017 +0900

    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
---
 src/lib/elementary/elc_popup.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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];
 }
 

-- 


Reply via email to