[orca] Don't return the child of a non-descendable element as the last document object



commit a4984f163d3ab3f2da3b7ee6884e5133b6eaa9da
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Oct 14 17:03:11 2015 -0400

    Don't return the child of a non-descendable element as the last document object

 src/orca/scripts/web/script_utilities.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 12bf4b7..fdc9a8a 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -335,6 +335,9 @@ class Utilities(script_utilities.Utilities):
             else:
                 break
 
+        if lastChild and self.doNotDescendForCaret(lastChild):
+            lastChild = lastChild.parent
+
         return lastChild
 
     def getRoleDescription(self, obj):


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