[orca] Work around a missing object:state-changed:focused event from LibreOffice



commit 538e8091020f9254e0889b08bc5cdf309a9ee2e8
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri May 1 11:16:46 2015 -0400

    Work around a missing object:state-changed:focused event from LibreOffice

 src/orca/scripts/apps/soffice/script.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 8f9fe03..c0e0a84 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -846,6 +846,11 @@ class Script(default.Script):
             orca.setLocusOfFocus(event, event.source)
             return
 
+        # Ditto.
+        if role == pyatspi.ROLE_PANEL and event.source.name:
+            orca.setLocusOfFocus(event, event.source)
+            return
+
     def onFocusedChanged(self, event):
         """Callback for object:state-changed:focused accessibility events."""
 


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