[orca] Work around two more missing object:state-changed:focused events from Gecko



commit 198beffe297602a69aeb3133ba7917df1a2f252e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Sep 9 13:11:36 2015 -0400

    Work around two more missing object:state-changed:focused events from Gecko

 src/orca/scripts/toolkits/Gecko/script.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 16e947d..b97429d 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -182,6 +182,12 @@ class Script(web.Script):
         if role == pyatspi.ROLE_COMBO_BOX:
             orca.setLocusOfFocus(event, event.source)
 
+        if role == pyatspi.ROLE_PAGE_TAB:
+            orca.setLocusOfFocus(event, event.source)
+
+        if role == pyatspi.ROLE_RADIO_BUTTON:
+            orca.setLocusOfFocus(event, event.source)
+
     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]