[orca] Treat articles like other roles for the purpose of large object navigation



commit 20b2291758509513ab6c39818ff550971b0e14de
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Aug 13 12:11:30 2019 -0400

    Treat articles like other roles for the purpose of large object navigation
    
    If the article is sufficiently large, generating speech for that object
    can take an enormous amount of time. And the article's children will
    likely be the individual large objects we should be presenting anyway.

 src/orca/structural_navigation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 481b45485..ace2d4735 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1685,7 +1685,7 @@ class StructuralNavigation:
         if role not in self.OBJECT_ROLES + self.CONTAINER_ROLES:
             return False
 
-        if role in [pyatspi.ROLE_ARTICLE, pyatspi.ROLE_HEADING]:
+        if role == pyatspi.ROLE_HEADING:
             return True
 
         text = self._script.utilities.queryNonEmptyText(obj)


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