[orca/orca-xdesktop] Fix for bug 657646 - Default stopSpeechOnActiveDescendantChanged() should not be so restrictive.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-xdesktop] Fix for bug 657646 - Default stopSpeechOnActiveDescendantChanged() should not be so restrictive.
- Date: Mon, 29 Aug 2011 22:56:09 +0000 (UTC)
commit 1598d291661c41983525e5b5b3413f5e8a40e1a5
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Mon Aug 29 17:46:31 2011 +0000
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 542a819..e4592b2 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4636,6 +4636,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]