[orca] Ignore checked state changes for objects which are expandable



commit 357639497c9fcfcfdfa73946b6736bb330c99542
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Feb 4 07:05:35 2014 -0500

    Ignore checked state changes for objects which are expandable

 src/orca/scripts/default.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 541d75e..4468e23 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2118,6 +2118,10 @@ class Script(script.Script):
         obj = event.source
         if not self.utilities.isSameObject(obj, orca_state.locusOfFocus):
             return
+
+        state = obj.getState()
+        if state.contains(pyatspi.STATE_EXPANDABLE):
+            return
  
         # Radio buttons normally change their state when you arrow to them,
         # so we handle the announcement of their state changes in the focus


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