[orca] Only set the locusOfFocus when gnome-shell selection changes to selected



commit 1514653c3901aa48624248813720fd75040d1b23
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Feb 19 18:04:19 2012 -0500

    Only set the locusOfFocus when gnome-shell selection changes to selected

 src/orca/scripts/toolkits/CALLY/script.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/CALLY/script.py b/src/orca/scripts/toolkits/CALLY/script.py
index 73fc33a..77fcf97 100644
--- a/src/orca/scripts/toolkits/CALLY/script.py
+++ b/src/orca/scripts/toolkits/CALLY/script.py
@@ -192,7 +192,8 @@ class Script(default.Script):
         """
 
         # We override the behaviour for the selection
-        if event.type.startswith("object:state-changed:selected"):
+        if event.type.startswith("object:state-changed:selected") \
+           and event.detail1:
             # For the moment we announce any selection change
 
             if event.source is not None:



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