[orca/gnome-3-6] Work around the bogus caretOffset we get for WebKitGtk content which doesn't have the caret
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-6] Work around the bogus caretOffset we get for WebKitGtk content which doesn't have the caret
- Date: Sun, 12 Aug 2012 22:00:39 +0000 (UTC)
commit ed58f4de63205640eacaa8295226faafe7862f1f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Aug 12 17:59:19 2012 -0400
Work around the bogus caretOffset we get for WebKitGtk content which doesn't have the caret
src/orca/scripts/toolkits/WebKitGtk/script.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/WebKitGtk/script.py b/src/orca/scripts/toolkits/WebKitGtk/script.py
index ada1637..2804c60 100644
--- a/src/orca/scripts/toolkits/WebKitGtk/script.py
+++ b/src/orca/scripts/toolkits/WebKitGtk/script.py
@@ -682,6 +682,12 @@ class Script(default.Script):
return textLine
textLine[0] = self.utilities.displayedText(obj)
+ try:
+ text = obj.queryText()
+ except:
+ pass
+ else:
+ textLine[1] = min(textLine[1], text.characterCount)
return textLine
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]