[orca/gnome-3-12] Eliminate a false positive identifying selected text with caret-moved events



commit 22b4d2b0032d08434d4cd63a9fcd11ed05fc1ec3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Apr 6 13:23:50 2014 -0400

    Eliminate a false positive identifying selected text with caret-moved events

 src/orca/scripts/default.py |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index b43fa0c..c18de06 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2194,10 +2194,7 @@ class Script(script.Script):
 
         text = event.source.queryText()
         self._saveLastCursorPosition(event.source, text.caretOffset)
-
-        textSelections = self.pointOfReference.get('textSelections', {})
-        start, end = textSelections.get(hash(event.source), (0, 0))
-        if text.getNSelections() or start != end:
+        if text.getNSelections():
             return
 
         self._presentTextAtNewCaretPosition(event)


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