[orca] Fix for bgo#622811 - Firefox: Braille not updated when checking a radio button



commit ae19cd60b492b2f29d136074dcfaa45b556d82ca
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sat Jun 26 22:05:51 2010 -0400

    Fix for bgo#622811 - Firefox: Braille not updated when checking a radio button

 src/orca/scripts/toolkits/Gecko/script.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index c5eeeda..12c3e45 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1906,6 +1906,13 @@ class Script(default.Script):
         - obj: the Accessible whose visual appearance changed.
         """
 
+        if obj.getRole() == pyatspi.ROLE_RADIO_BUTTON \
+           and self.utilities.isSameObject(orca_state.locusOfFocus, obj):
+            msg = self.speechGenerator.generateSpeech(obj, alreadyFocused=True)
+            speech.speak(msg)
+            self.updateBraille(obj)
+            return
+
         if (obj.getRole() == pyatspi.ROLE_CHECK_BOX) \
             and obj.getState().contains(pyatspi.STATE_FOCUSED):
             orca.setLocusOfFocus(



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