[orca/orca-gnome3: 49/87] Fix for bug #645290 - Orca does not present links in Yelp 3 when those links are made up of multiple



commit fbab84945b57a1b5a3ba85add10c03e444a2ea79
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Mar 20 03:32:48 2011 -0400

    Fix for bug #645290 - Orca does not present links in Yelp 3 when those links are made up of multiple objects

 src/orca/scripts/toolkits/WebKitGtk/script.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index d79a28c..1b70c7b 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -170,6 +170,12 @@ class Script(default.Script):
         if role in textRoles:
             return
 
+        if role == pyatspi.ROLE_LINK and obj.childCount:
+            try:
+                text = obj.queryText()
+            except NotImplementedError:
+                orca.setLocusOfFocus(event, obj[0])
+
         default.Script.onFocus(self, event)
 
     def onStateChanged(self, event):



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