[orca/gnome-3-6] Last change needed to make WebKitGtk content fully braille scrollable.



commit 5c4cec54e0b050772522ba6b212dc8e10af8dbc7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Aug 13 14:51:42 2012 -0400

    Last change needed to make WebKitGtk content fully braille scrollable.

 src/orca/scripts/toolkits/WebKitGtk/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index badde7a..7542d95 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -692,7 +692,8 @@ class Script(default.Script):
 
         textLine = default.Script.getTextLineAtCaret(self, obj, offset)
         string = textLine[0].decode('UTF-8')
-        if string and string.find(self.EMBEDDED_OBJECT_CHARACTER) == -1:
+        if string and string.find(self.EMBEDDED_OBJECT_CHARACTER) == -1 \
+           and obj.getState().contains(pyatspi.STATE_FOCUSED):
             return textLine
 
         textLine[0] = self.utilities.displayedText(obj)



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