[orca/gnome-3-34] Ignore busy-changed events from non-document objects which we're not in
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-34] Ignore busy-changed events from non-document objects which we're not in
- Date: Thu, 17 Oct 2019 09:45:15 +0000 (UTC)
commit a706708707d10d270a1cb05ed0e06be2be0bb16c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Oct 17 05:44:05 2019 -0400
Ignore busy-changed events from non-document objects which we're not in
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 aeb13ee56..a7d907970 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1293,6 +1293,12 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return False
+ if event.source.getRole() != pyatspi.ROLE_DOCUMENT_WEB \
+ and not self.utilities.isOrDescendsFrom(orca_state.locusOfFocus, event.source):
+ msg = "WEB: Ignoring: Not document and not something we're in"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return True
+
self.structuralNavigation.clearCache()
if self.utilities.getDocumentForObject(event.source.parent):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]