[orca] Set the active script to None if the current window is deactivated
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Set the active script to None if the current window is deactivated
- Date: Mon, 26 Mar 2018 17:37:03 +0000 (UTC)
commit fe5a10d097ff7ba4fa2a1dbae68a474f00a12dee
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 26 13:26:12 2018 -0400
Set the active script to None if the current window is deactivated
This condition is typically immediately followed by some other accessible
event which will cause the new active script to be set correctly. Failing
that (e.g. an inaccessible window gets focus), the event manager will set
the script to the default script. This should prevent things like the
terminal script continuing to spew output when a new workspace with no
accessible applications gains focus.
src/orca/scripts/default.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 32139cc..673e8fc 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2825,6 +2825,7 @@ class Script(script.Script):
if event.source == orca_state.activeWindow:
orca.setLocusOfFocus(event, None)
orca_state.activeWindow = None
+ orca_state.activeScript = None
self.flatReviewContext = None
# disable list notification messages mode
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]