[orca] Update locusOfFocus to active window even in the case of broken hierarchy



commit 670a9e7647d105b1d1c478aa944f05b4aa6a1c58
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jul 19 00:03:28 2017 +0200

    Update locusOfFocus to active window even in the case of broken hierarchy

 src/orca/scripts/default.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 8abd79b..1102a4f 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2737,8 +2737,9 @@ class Script(script.Script):
         else:
             if childCount == 1 and childRole == pyatspi.ROLE_MENU:
                 orca.setLocusOfFocus(event, event.source[0])
-            else:
-                orca.setLocusOfFocus(event, event.source)
+                return
+
+        orca.setLocusOfFocus(event, event.source)
 
     def onWindowCreated(self, event):
         """Callback for window:create accessibility events."""


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