[orca/gnome-3-12] Work around missing state-changed:focused events for Gtk+ 2 combo boxes



commit 83271c9d12c1acf943865adbfa99b499450bf365
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Feb 26 08:26:15 2014 -0500

    Work around missing state-changed:focused events for Gtk+ 2 combo boxes

 src/orca/scripts/toolkits/GAIL/script.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/GAIL/script.py b/src/orca/scripts/toolkits/GAIL/script.py
index a97e232..b618dda 100644
--- a/src/orca/scripts/toolkits/GAIL/script.py
+++ b/src/orca/scripts/toolkits/GAIL/script.py
@@ -45,6 +45,11 @@ class Script(default.Script):
 
         role = event.source.getRole()
 
+        # https://bugzilla.gnome.org/show_bug.cgi?id=711397
+        if role == pyatspi.ROLE_COMBO_BOX:
+            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]