[orca] Update the active window when locusOfFocus changes due to non-active app
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Update the active window when locusOfFocus changes due to non-active app
- Date: Tue, 7 Feb 2017 12:35:15 +0000 (UTC)
commit f3732e5442a5f6f2e5281b7251f6117780b048b9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 7 07:32:39 2017 -0500
Update the active window when locusOfFocus changes due to non-active app
src/orca/scripts/default.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 50dfb7a..5893d2c 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -821,7 +821,8 @@ class Script(script.Script):
if self.flatReviewContext:
self.toggleFlatReviewMode()
- if not orca_state.activeWindow:
+ if not orca_state.activeWindow \
+ or (event and event.host_application != orca_state.activeScript.app):
orca_state.activeWindow = self.utilities.topLevelObject(newLocusOfFocus)
self.updateBraille(newLocusOfFocus)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]