atspi: do not demote an object that repeats event. 69/166869/3
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 12 Jan 2018 07:38:36 +0000 (16:38 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 12 Jan 2018 07:51:00 +0000 (07:51 +0000)
commit81521787c6dc9d2afe36345712c2538436b65e6d
treeb8afdb4f69e1f76c720bda47b295637c3d4b5561
parent47153862f20f1c5ae26284a78279b9b6f91a0bcb
atspi: do not demote an object that repeats event.

   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.

   atspi: fix compare func to find object at point
      The compare function(_sort_by_repeat_events) does not change if two objects
      repeat event(repeat_events: 1) even though the second object is registered to
      elm_access. In this case the object could be demoted in the list, and it is not
      possilbe to find the object by screen reader.
      The following is the problem case:
      [Before Sorting]
      1. Object A (repeat_events: 1)
      2. Object B (repeat_events: 1, is registred to elm_access)
      3. Object C (repeat_events: 1)
      4. Object D (repeat_events: 0)
      5. Object E (repeat_events: 0)
      [After Sorting] D - E - A - B -C

      commit: 13c423e081c9ee3c1cac4a1d621479d421dd9294

Change-Id: I9348a10cdd3fde93c4a833b535c1c50cc7a859c5
src/lib/elementary/efl_ui_widget.c