[orca/570658] Treat tree tables like tables



commit 902961c45c5519eaf7e20cc007c02be14b158be7
Author: Willie Walker <william walker sun com>
Date:   Thu May 14 18:56:32 2009 -0400

    Treat tree tables like tables
    
    Without this, arrowing across a row would cause the whole row to speak.
---
 src/orca/default.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/orca/default.py b/src/orca/default.py
index 16f9815..69002e4 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -2778,7 +2778,8 @@ class Script(script.Script):
         # table-related points of reference.
         #
         if oldParent is not None and oldParent == newParent and \
-              newParent.getRole() == pyatspi.ROLE_TABLE:
+              newParent.getRole() in [pyatspi.ROLE_TABLE,
+                                      pyatspi.ROLE_TREE_TABLE]:
             for key in self.pointOfReference.keys():
                 if key not in ('lastRow', 'lastColumn'):
                     del self.pointOfReference[key]



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