[orca] Fix for bug #634862 - Orca doesn't speak the heading or level when using caret navigation in WebKitG
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug #634862 - Orca doesn't speak the heading or level when using caret navigation in WebKitG
- Date: Sun, 14 Nov 2010 22:44:49 +0000 (UTC)
commit 901d6f92ed77ff9d21a5397fa39df0a47f229d28
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun Nov 14 17:44:09 2010 -0500
Fix for bug #634862 - Orca doesn't speak the heading or level when using caret navigation in WebKitGtk content
src/orca/scripts/toolkits/WebKitGtk/script.py | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index d88f40e..1222d81 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -138,6 +138,21 @@ class Script(default.Script):
default.Script.sayCharacter(self, obj)
+ def sayLine(self, obj):
+ """Speaks the line of an AccessibleText object that contains the
+ caret.
+
+ Arguments:
+ - obj: an Accessible object that implements the AccessibleText
+ interface
+ """
+
+ default.Script.sayLine(self, obj)
+
+ rolesToSpeak = [pyatspi.ROLE_HEADING]
+ if obj.getRole() in rolesToSpeak:
+ speech.speak(self.speechGenerator.getRoleName(obj))
+
def skipObjectEvent(self, event):
"""Gives us, and scripts, the ability to decide an event isn't
worth taking the time to process under the current circumstances.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]