[orca/gnome-2-28] Additional fix for bgo#592634 - The Gecko script's handling of caret navigation interferes when navi



commit 3f9e97283c3bef1ce042cfdb4c78a609e6c27063
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Aug 30 15:52:08 2009 -0400

    Additional fix for bgo#592634 - The Gecko script's handling of caret navigation interferes when navigating editable messages in Thunderbird

 src/orca/scripts/toolkits/Gecko/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index c06d447..1d890da 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -6174,6 +6174,9 @@ class Script(default.Script):
         currentLine = self.currentLineContents
         index = self.findObjectOnLine(obj, characterOffset, currentLine)
         if index < 0:
+            text = self.queryNonEmptyText(obj)
+            if text and text.characterCount == characterOffset:
+                characterOffset -= 1
             currentLine = self.getLineContentsAtOffset(obj, characterOffset)
 
         prevObj = currentLine[0][0]



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