[orca] Add more smarts for dealing with the focused object being destroyed
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add more smarts for dealing with the focused object being destroyed
- Date: Tue, 28 May 2019 11:16:40 +0000 (UTC)
commit fea98fa835b1d3134d7f8373cc55964c3b526a02
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue May 28 13:15:55 2019 +0200
Add more smarts for dealing with the focused object being destroyed
src/orca/scripts/web/script.py | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 64bbf183e..165587f0c 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1628,6 +1628,13 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
if self.utilities.isZombie(obj):
+ if self.utilities.isSameObject(obj, event.any_data, comparePaths=True, ignoreNames=True):
+ msg = "WEB: Event handled by updating locusOfFocus and context"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ orca.setLocusOfFocus(event, event.any_data, False)
+ self.utilities.setCaretContext(event.any_data, offset)
+ return True
+
obj, offset = self.utilities.getCaretContext(getZombieReplicant=True)
if not obj:
if self._inFocusMode:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]