[orca] Fix for bug 701743 - Orca's word echo does not echo first word typed in an empty libreoffice writer



commit ed89fd731d1fb2593ca8dfc432cf3ae1200c206e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jun 8 17:06:20 2013 -0400

    Fix for bug 701743 - Orca's word echo does not echo first word typed in an empty libreoffice writer 
document
    
    A sanity check is catching a bogus event.detail1 received from Writer.
    But I'm relatively certain that removing that sanity check won't do
    damage and will solve the problem faster than it will likely be solved
    in LibreOffice.

 src/orca/scripts/default.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 2d5a5c5..bf28772 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2836,7 +2836,7 @@ class Script(script.Script):
         except NotImplementedError:
             return
 
-        offset = min(event.detail1, text.caretOffset - 1)
+        offset = text.caretOffset - 1
         previousOffset = offset - 1
         if (offset < 0 or previousOffset < 0):
             return


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