[orca] Fix for bug 657646 - Default stopSpeechOnActiveDescendantChanged() should not be so restrictive.



commit 8a9f9f8cb937aa8d45e7d387fa7f0c27e0225c5b
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Mon Aug 29 19:46:31 2011 +0200

    Fix for bug 657646 - Default stopSpeechOnActiveDescendantChanged() should not be so restrictive.

 src/orca/scripts/default.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 9120a7c..603f8f7 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4579,6 +4579,12 @@ class Script(script.Script):
         Returns True if speech should be stopped; False otherwise.
         """
 
+        if not event.any_data:
+            return True
+
+        if event.source == orca_state.locusOfFocus == event.any_data.parent:
+            return False
+
         return True
 
     def getAtkNameForAttribute(self, attribName):



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