[orca] Examine the new locusOfFocus (not the event.source) in locusOfFocusChanged



commit 7faa406277268b8296b6934c124f0e44e709626c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Aug 24 01:09:20 2014 -0400

    Examine the new locusOfFocus (not the event.source) in locusOfFocusChanged

 src/orca/scripts/apps/soffice/script.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index b79c2d2..fec14b8 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -638,8 +638,8 @@ class Script(default.Script):
                      pyatspi.ROLE_ROOT_PANE,
                      pyatspi.ROLE_FRAME,
                      pyatspi.ROLE_APPLICATION]
-        if self.utilities.hasMatchingHierarchy(event.source, rolesList):
-            for child in event.source.parent:
+        if self.utilities.hasMatchingHierarchy(newLocusOfFocus, rolesList):
+            for child in newLocusOfFocus.parent:
                 if child.getRole() == pyatspi.ROLE_PAGE_TAB_LIST:
                     for tab in child:
                         eventState = tab.getState()


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