[orca] Work around Google Maps killing the focused widget
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around Google Maps killing the focused widget
- Date: Tue, 29 Mar 2016 23:16:09 +0000 (UTC)
commit e834fd6ffa3603101d304f7f89e78b9e7580649d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Mar 29 19:15:15 2016 -0400
Work around Google Maps killing the focused widget
src/orca/scripts/web/script.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index caea621..bf1cc14 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1399,7 +1399,12 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return True
- obj, offset = self.utilities.getCaretContext()
+ obj, offset = self.utilities.getCaretContext(getZombieReplicant=False)
+ if self.utilities.isZombie(obj):
+ obj, offset = self.utilities.getCaretContext(getZombieReplicant=True)
+ if obj:
+ orca.setLocusOfFocus(event, obj, notifyScript=False)
+
contextDocument = self.utilities.getDocumentForObject(obj)
if obj and document == contextDocument and self.utilities.isZombie(obj):
msg = "WEB: Context obj %s is Zombie." % obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]