[orca] Make sure we have a caret context when going to the beginning of a line



commit 17d7ac553b24fac983a4e2e23ad497a1e23d5077
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Nov 20 09:09:03 2013 -0500

    Make sure we have a caret context when going to the beginning of a line

 src/orca/scripts/toolkits/Gecko/script.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 1879a8b..6d700c4 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -4199,7 +4199,7 @@ class Script(default.Script):
 
         [obj, characterOffset] = self.getCaretContext()
         line = self.getLineContentsAtOffset(obj, characterOffset)
-        obj, characterOffset = line[0][0], line[0][1]
+        obj, characterOffset = self.findFirstCaretContext(line[0][0], line[0][1])
         self.setCaretPosition(obj, characterOffset)
         if not isinstance(orca_state.lastInputEvent, input_event.BrailleEvent):
             self.speakCharacterAtOffset(obj, characterOffset)


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