atspi: do not demote an object that repeats event. 74/131074/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 May 2017 09:23:39 +0000 (18:23 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 30 May 2017 07:06:06 +0000 (16:06 +0900)
If an object is registered to elm_access, then do not demote its order even
though the object repeats event(repeat_events: 1) when _sort_by_repeat_events
function sorts object order.

User could add a rectangle to give accessibility. If the rectangle does not
repeat events, then it would be a problem when screen reader is off.

Change-Id: I3c154c96a290abb30f96564a9cee47ce237c5fe7

src/lib/elm_widget.c

index 6dfc07e169d44e6010ea9ed65b929a426a0fcc31..b121c610dd0bab906a6276e294462bca40f606d9 100644 (file)
@@ -7234,6 +7234,9 @@ static int _sort_by_repeat_events(const void *data1, const void *data2)
    repeat1 = evas_object_repeat_events_get(data1);
    repeat2 = evas_object_repeat_events_get(data2);
 
+   Evas_Object *ao = elm_access_object_get(data1);
+   if (ao) return -1;
+
    if (repeat1 != repeat2 && repeat1 == EINA_TRUE) return 1;
    return -1;
 }