[orca] Don't cut the presentation of a name-change on a active-descendant change
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't cut the presentation of a name-change on a active-descendant change
- Date: Tue, 30 Aug 2011 16:37:19 +0000 (UTC)
commit 21b20d6200853683b134291713fccd73a2387ee7
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Tue Aug 30 18:30:30 2011 +0200
Don't cut the presentation of a name-change on a active-descendant change
src/orca/scripts/default.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 603f8f7..191a6df 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4582,6 +4582,18 @@ class Script(script.Script):
if not event.any_data:
return True
+ # In an object which manages its descendants, the
+ # 'descendants' may really be a single object which changes
+ # its name. If the name-change occurs followed by the active
+ # descendant changing (to the same object) we won't present
+ # the locusOfFocus because it hasn't changed. Thus we need to
+ # 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 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]