[orca] Treat column header and row headers with explicit author names as whole



commit c83128ac25b4492959fbea0736b16b9b219c7ca9
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Tue Jan 21 20:45:46 2020 -0500

    Treat column header and row headers with explicit author names as whole
    
    If we descend these objects, we're in danger of being chatty and presenting
    information the author is trying to override with the explicit name.

 src/orca/scripts/web/script_utilities.py | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 34306dd38..478dbf19a 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1082,6 +1082,10 @@ class Utilities(script_utilities.Utilities):
             if self.hasNameAndActionAndNoUsefulChildren(obj):
                 return True
 
+        if role in [pyatspi.ROLE_COLUMN_HEADER, pyatspi.ROLE_ROW_HEADER] \
+           and self.hasExplicitName(obj):
+            return True
+
         if role == pyatspi.ROLE_COMBO_BOX:
             return not self.isEditableComboBox(obj)
 


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