[orca] Fall back on AtspiComponent to get the accessible at point for web content



commit 070b0bcb225ff6e34996b25cd32e27fda147b07a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Nov 20 11:47:47 2019 -0500

    Fall back on AtspiComponent to get the accessible at point for web content

 src/orca/scripts/web/script_utilities.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index d293f048b..408d91c06 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4555,6 +4555,9 @@ class Utilities(script_utilities.Utilities):
         return False
 
     def descendantAtPoint(self, root, x, y, coordType=None):
+        if coordType is None:
+            coordType = pyatspi.DESKTOP_COORDS
+
         if not (root and self.inDocumentContent(root)):
             return super().descendantAtPoint(root, x, y, coordType)
 
@@ -4568,5 +4571,9 @@ class Utilities(script_utilities.Utilities):
             if self.containsPoint(child, x, y, coordType):
                 obj = child
                 break
+        else:
+            child = root.queryComponent().getAccessibleAtPoint(x, y, coordType)
+            if child:
+                return child
 
         return super().descendantAtPoint(obj, x, y, coordType)


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