[orca] Fix to present the new sliders in gnome-shell



commit 9eb35c9e7e68c2ef9149fe2246c8653426fe489e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Aug 22 12:45:05 2013 -0400

    Fix to present the new sliders in gnome-shell

 src/orca/scripts/toolkits/CALLY/script.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/CALLY/script.py b/src/orca/scripts/toolkits/CALLY/script.py
index 376ade5..dc71e67 100644
--- a/src/orca/scripts/toolkits/CALLY/script.py
+++ b/src/orca/scripts/toolkits/CALLY/script.py
@@ -294,6 +294,14 @@ class Script(default.Script):
             if role == pyatspi.ROLE_DIALOG:
                 return
 
+            if role == pyatspi.ROLE_MENU_ITEM and not event.source.name \
+               and not self.utilities.labelsForObject(event.source):
+                isRealFocus = lambda x: x and x.getRole() == pyatspi.ROLE_SLIDER
+                descendant = pyatspi.findDescendant(event.source, isRealFocus)
+                if descendant:
+                    orca.setLocusOfFocus(event, descendant)
+                    return
+
             # This is to present dialog boxes which are, to the user, newly
             # activated. And if something is claiming to be focused that is
             # not in a dialog, that's good to know as well, so update our


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