[orca] Fix issue finding initial flat review location in Thunderbird
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix issue finding initial flat review location in Thunderbird
- Date: Tue, 16 Aug 2016 23:22:08 +0000 (UTC)
commit 0de7fbab644051b08d5451d349d4d97555fdc45d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 16 18:59:56 2016 -0400
Fix issue finding initial flat review location in Thunderbird
src/orca/flat_review.py | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index b8d4052..2b3a5c1 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -596,11 +596,7 @@ class Context:
except:
role = None
- if role == pyatspi.ROLE_TABLE_CELL:
- searchZone = self.script.\
- utilities.realActiveDescendant(orca_state.locusOfFocus)
- else:
- searchZone = orca_state.locusOfFocus
+ searchZone = orca_state.locusOfFocus
foundZoneWithFocus = False
while currentLineIndex < len(self.lines):
@@ -608,8 +604,7 @@ class Context:
currentZoneIndex = 0
while currentZoneIndex < len(line.zones):
zone = line.zones[currentZoneIndex]
- if self.script.utilities.isSameObject(
- zone.accessible, searchZone):
+ if searchZone in [zone.accessible, zone.accessible.parent]:
foundZoneWithFocus = True
break
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]