[orca] Prevent Orca from double-presenting focused links with structural navigation in WebKitGtk lists



commit 7b5a7a9f179d8014a0bd9e406d42770aa6c7dad2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Apr 8 16:59:25 2012 -0400

    Prevent Orca from double-presenting focused links with structural navigation in WebKitGtk lists

 .../toolkits/WebKitGtk/structural_navigation.py    |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py b/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
index c2840f4..d11d74f 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/structural_navigation.py
@@ -83,6 +83,14 @@ class StructuralNavigation(structural_navigation.StructuralNavigation):
 
         if characterOffset == 0:
             child, offset = self._script.setCaretAtStart(obj)
+
+            if child and child.getRole() == pyatspi.ROLE_LIST_ITEM:
+                for c in child:
+                    start, end = self._script.utilities.getHyperlinkRange(c)
+                    if start == offset:
+                        child = c
+                        break
+
             orca.setLocusOfFocus(None, child, False)
             return
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]