[orca] Fix for bgo#613299 - Orca should not present changes in the active descendant for unfocused widgets
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#613299 - Orca should not present changes in the active descendant for unfocused widgets
- Date: Sat, 29 May 2010 17:56:20 +0000 (UTC)
commit 3f1322d84a3e59f0b63c0a7521faf028c8ec346a
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat May 29 13:54:52 2010 -0400
Fix for bgo#613299 - Orca should not present changes in the active descendant for unfocused widgets in OOo
src/orca/scripts/apps/soffice/script.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 8a879c5..9ea4fba 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -1767,8 +1767,13 @@ class Script(default.Script):
# The style list in the Formatting toolbar also lacks state
# focused.
#
- elif event.any_data and self.utilities.ancestorWithRole(
- event.source, [pyatspi.ROLE_TOOL_BAR], [pyatspi.ROLE_FRAME]):
+ elif event.any_data \
+ and self.utilities.ancestorWithRole(event.source,
+ [pyatspi.ROLE_TOOL_BAR],
+ [pyatspi.ROLE_FRAME]) \
+ and self.utilities.ancestorWithRole(orca_state.locusOfFocus,
+ [pyatspi.ROLE_TOOL_BAR],
+ [pyatspi.ROLE_FRAME]):
handleEvent = True
elif self.utilities.isSameObject(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]