[orca/gnome-3-12] Ignore selection change events from non-focused Evolution combo boxes



commit 8ecea617f06dac10eb6011f4b1a8854b44b117c8
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Mar 18 13:42:30 2014 -0400

    Ignore selection change events from non-focused Evolution combo boxes

 src/orca/scripts/apps/evolution/script.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/evolution/script.py b/src/orca/scripts/apps/evolution/script.py
index 59b5f10..c534738 100644
--- a/src/orca/scripts/apps/evolution/script.py
+++ b/src/orca/scripts/apps/evolution/script.py
@@ -121,6 +121,16 @@ class Script(WebKitGtk.Script):
 
         gtk.Script.onNameChanged(self, event)
 
+    def onSelectionChanged(self, event):
+        """Callback for object:selection-changed accessibility events."""
+
+        obj = event.source
+        if obj.getRole() == pyatspi.ROLE_COMBO_BOX \
+           and not obj.getState().contains(pyatspi.STATE_FOCUSED):
+            return
+
+        gtk.Script.onSelectionChanged(self, event)
+
     def onShowingChanged(self, event):
         """Callback for object:state-changed:showing accessibility events."""
  


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