[orca] Search for caret context in parent of replicant of destroyed object
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Search for caret context in parent of replicant of destroyed object
- Date: Wed, 1 Feb 2017 15:21:52 +0000 (UTC)
commit 61c959838d14db08b28f57bcd1e4544124b4d01f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 1 16:12:59 2017 +0100
Search for caret context in parent of replicant of destroyed object
This should improve our accuracy recovering our location when the
accessible element we're in is destroyed and recreated.
src/orca/scripts/web/script_utilities.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index a24464e..19fb07b 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3053,6 +3053,10 @@ class Utilities(script_utilities.Utilities):
return context
elif self.isZombie(context[0]):
obj, offset = self.findContextReplicant()
+ if obj:
+ caretObj, caretOffset = self._searchForCaretContext(obj.parent)
+ if caretObj and not self.isZombie(caretObj):
+ obj, offset = caretObj, caretOffset
else:
obj, offset = context
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]