[orca] Improve presentation of headings which contain embedded objects



commit 11ab42faf843182318db02774f9dd28d2c8a94e3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 26 01:57:15 2015 -0500

    Improve presentation of headings which contain embedded objects

 src/orca/scripts/web/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 958ea02..56c3647 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -999,6 +999,9 @@ class Script(default.Script):
         if self.utilities.isAnchor(newFocus):
             contents = self.utilities.getLineContentsAtOffset(newFocus, 0)
             utterances = self.speechGenerator.generateContents(contents)
+        elif newFocus.getRole() == pyatspi.ROLE_HEADING:
+            contents = self.utilities.getObjectContentsAtOffset(newFocus, 0)
+            utterances = self.speechGenerator.generateContents(contents)
         else:
             utterances = self.speechGenerator.generateSpeech(newFocus, priorObj=oldFocus)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]