[orca/gnome-3-16] Work around yet another missing object:state-changed:focused event from Gtk+



commit d723ba67b3205a1c29cf3755818eea160dc7d173
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Mar 23 09:20:51 2015 -0400

    Work around yet another missing object:state-changed:focused event from Gtk+

 src/orca/scripts/toolkits/gtk/script.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script.py b/src/orca/scripts/toolkits/gtk/script.py
index 8adde22..0e2c0e7 100644
--- a/src/orca/scripts/toolkits/gtk/script.py
+++ b/src/orca/scripts/toolkits/gtk/script.py
@@ -108,6 +108,11 @@ class Script(default.Script):
             orca.setLocusOfFocus(event, event.source)
             return
 
+        # And with sliders.
+        if role == pyatspi.ROLE_SLIDER:
+            orca.setLocusOfFocus(event, event.source)
+            return
+
         # https://bugzilla.gnome.org/show_bug.cgi?id=720987
         if role == pyatspi.ROLE_TABLE_COLUMN_HEADER:
             orca.setLocusOfFocus(event, event.source)


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