[orca] Always deactivate active spellcheck support on window:deactivate



commit b33816400fc3edf8bdff2d95db618f2b9b34ba96
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Feb 18 09:17:41 2014 -0500

    Always deactivate active spellcheck support on window:deactivate

 src/orca/scripts/apps/Thunderbird/script.py |    3 +--
 src/orca/scripts/apps/gedit/script.py       |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index ad85705..4386799 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -430,5 +430,4 @@ class Script(Gecko.Script):
         """Callback for window:deactivate accessibility events."""
 
         Gecko.Script.onWindowDeactivated(self, event)
-        if self.spellcheck.isCheckWindow(event.source):
-            self.spellcheck.deactivate()
+        self.spellcheck.deactivate()
diff --git a/src/orca/scripts/apps/gedit/script.py b/src/orca/scripts/apps/gedit/script.py
index e76dc10..85a6252 100644
--- a/src/orca/scripts/apps/gedit/script.py
+++ b/src/orca/scripts/apps/gedit/script.py
@@ -151,5 +151,4 @@ class Script(gtk.Script):
         """Callback for window:deactivate accessibility events."""
 
         gtk.Script.onWindowDeactivated(self, event)
-        if self.spellcheck.isCheckWindow(event.source):
-            self.spellcheck.deactivate()
+        self.spellcheck.deactivate()


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