[orca] Filter out checked event from LibreOffice window which isn't active



commit 9fef81adccd918e4c9883381ae1e82c7099a98d0
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Aug 7 13:01:02 2017 -0400

    Filter out checked event from LibreOffice window which isn't active

 src/orca/scripts/apps/soffice/script.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 02cc768..360080a 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -824,6 +824,11 @@ class Script(default.Script):
             default.Script.onCheckedChanged(self, event)
             return
  
+        sourceWindow = self.utilities.topLevelObject(obj)
+        focusWindow = self.utilities.topLevelObject(orca_state.locusOfFocus)
+        if sourceWindow != focusWindow:
+            return
+
         # Announce when the toolbar buttons are toggled if we just toggled
         # them; not if we navigated to some text.
         weToggledIt = False


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