[orca] Ensure we handle selection-change events from web app descendants
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ensure we handle selection-change events from web app descendants
- Date: Tue, 31 Mar 2020 16:36:54 +0000 (UTC)
commit 122a11f408962883b8f29a4700df6eb4a0c2002f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Mar 31 12:32:01 2020 -0400
Ensure we handle selection-change events from web app descendants
src/orca/scripts/web/script.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index d18ab7a4c..b66032f92 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -2004,6 +2004,11 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return True
+ if self.utilities.isWebAppDescendant(event.source):
+ msg = "WEB: Event source is web app descendant"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return False
+
obj, offset = self.utilities.getCaretContext()
ancestor = self.utilities.commonAncestor(obj, event.source)
if ancestor and self.utilities.isTextBlockElement(ancestor):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]