[orca] Don't return the child of a non-descendable element as the last document object
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't return the child of a non-descendable element as the last document object
- Date: Wed, 14 Oct 2015 21:05:08 +0000 (UTC)
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]