[orca] Ignore bogus focus event for active window from Gecko
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ignore bogus focus event for active window from Gecko
- Date: Thu, 13 Sep 2018 14:17:04 +0000 (UTC)
commit 6fcab989e323919d16149e24187be3f984dd5916
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Sep 13 10:16:33 2018 -0400
Ignore bogus focus event for active window from Gecko
src/orca/scripts/toolkits/Gecko/script.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 5b77343a0..70700df69 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -182,6 +182,11 @@ class Script(web.Script):
if self.utilities.isLayoutOnly(event.source):
return
+ if event.source == orca_state.activeWindow:
+ msg = "GECKO: Ignoring event for active window."
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
# NOTE: This event type is deprecated and Orca should no longer use it.
# This callback remains just to handle bugs in applications and toolkits
# in which object:state-changed:focused events are missing. And in the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]