[orca] Ignore text deletions from unrelated objects in web content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ignore text deletions from unrelated objects in web content
- Date: Wed, 5 Jun 2019 18:08:39 +0000 (UTC)
commit efc1826719f4540e018c4a70c4c62453d98d68e1
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jun 5 14:08:08 2019 -0400
Ignore text deletions from unrelated objects in web content
src/orca/scripts/web/script.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 2eb23f3b9..47c71539f 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1970,6 +1970,12 @@ class Script(default.Script):
return True
obj, offset = self.utilities.getCaretContext(getZombieReplicant=False)
+ if obj and obj != event.source \
+ and not pyatspi.findAncestor(obj, lambda x: x == event.source):
+ msg = "WEB: Ignoring event because it isn't %s or its ancestor" % obj
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return True
+
if self.utilities.isZombie(obj):
if self.utilities.isLink(obj):
msg = "WEB: Focused link deleted. Taking no further action."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]