[orca] Defer to default presentObject() when not in document content
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Defer to default presentObject() when not in document content
- Date: Fri, 6 Jul 2018 12:44:41 +0000 (UTC)
commit e72c3c0b40d33dae268565b6302121b8682e1228
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jul 6 08:43:58 2018 -0400
Defer to default presentObject() when not in document content
src/orca/scripts/web/script.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index c0c634e9d..f25c0e0e6 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -841,6 +841,10 @@ class Script(default.Script):
self.speakContents(contents, priorObj=priorObj)
def presentObject(self, obj, **args):
+ if not self.utilities.inDocumentContent(obj):
+ super().presentObject(obj, **args)
+ return
+
priorObj = args.get("priorObj")
if self._lastCommandWasCaretNav or args.get("includeContext"):
priorObj, priorOffset = self.utilities.getPriorContext()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]