[orca] Treat links with names as leaf nodes when getting descendant at point



commit 4669248d662230f01d97820d1527f758c64e3904
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Nov 20 11:25:03 2019 -0500

    Treat links with names as leaf nodes when getting descendant at point

 src/orca/script_utilities.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 4fbc6e5bb..5298be2ef 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -4142,6 +4142,9 @@ class Utilities:
             entry = pyatspi.findDescendant(obj, lambda x: x and x.getRole() == pyatspi.ROLE_ENTRY)
             return entry is None
 
+        if role == pyatspi.ROLE_LINK and obj.name:
+            return True
+
         state = obj.getState()
         if state.contains(pyatspi.STATE_EXPANDABLE):
             return not state.contains(pyatspi.STATE_EXPANDED)


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