atspi: do not demote an object that repeats event. 81/131081/3
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 25 May 2017 09:23:39 +0000 (18:23 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 28 Jun 2017 06:48:18 +0000 (06:48 +0000)
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 c1a6702..3d59bb5 100644 (file)
@@ -7207,6 +7207,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;
 }