[orca] Set the active script to None if the current window is deactivated



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]