[orca] Work around for Orca not presenting the gnome-shell run dialog text in braille
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around for Orca not presenting the gnome-shell run dialog text in braille
- Date: Tue, 5 Jun 2012 11:15:26 +0000 (UTC)
commit e44400d4341229a2ea9a342c3832abbcd808dcf8
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 5 07:14:14 2012 -0400
Work around for Orca not presenting the gnome-shell run dialog text in braille
src/orca/scripts/toolkits/CALLY/script.py | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/CALLY/script.py b/src/orca/scripts/toolkits/CALLY/script.py
index 1387143..4baf4f2 100644
--- a/src/orca/scripts/toolkits/CALLY/script.py
+++ b/src/orca/scripts/toolkits/CALLY/script.py
@@ -321,3 +321,24 @@ class Script(default.Script):
return
default.Script.onStateChanged(self, event)
+
+ def getTextLineAtCaret(self, obj, offset=None):
+ """Gets the line of text where the caret is."""
+
+ # TODO - JD/API: This is to work around the braille issue reported
+ # in bgo 677221. When that is resolved, this workaround can be
+ # removed.
+ string, caretOffset, startOffset = \
+ default.Script.getTextLineAtCaret(self, obj, offset)
+
+ if string:
+ return [string, caretOffset, startOffset]
+
+ try:
+ text = obj.queryText()
+ except:
+ pass
+ else:
+ string = text.getText(0, -1)
+
+ return [string, caretOffset, startOffset]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]