[orca/gnome-3-4] Prevent Orca from interrupting speech in Anaconda trees
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-4] Prevent Orca from interrupting speech in Anaconda trees
- Date: Sun, 22 Apr 2012 18:05:21 +0000 (UTC)
commit 63983c0d4ba8e6e15e8140ed6fb5e090de3d70a7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Apr 22 14:04:56 2012 -0400
Prevent Orca from interrupting speech in Anaconda trees
src/orca/scripts/default.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 12d2d35..fef8ba8 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4750,9 +4750,10 @@ class Script(script.Script):
# be sure not to cut of the presentation of the name-change
# event.
- if orca_state.locusOfFocus == event.any_data and \
- event.any_data.name == self.pointOfReference.get('oldName', ''):
- return False
+ if orca_state.locusOfFocus == event.any_data:
+ oldName = self.pointOfReference.get('oldName', '')
+ if not oldName or event.any_data.name == oldName:
+ return False
if event.source == orca_state.locusOfFocus == event.any_data.parent:
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]