Commit 6fcab989e323919d16149e24187be3f984dd5916

Authored by Joanmarie Diggs
1 parent e4ffe90e

Ignore bogus focus event for active window from Gecko

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/orca/scripts/toolkits/Gecko/script.py
... ... @@ -182,6 +182,11 @@ class Script(web.Script):
182 182 if self.utilities.isLayoutOnly(event.source):
183 183 return
184 184  
  185 + if event.source == orca_state.activeWindow:
  186 + msg = "GECKO: Ignoring event for active window."
  187 + debug.println(debug.LEVEL_INFO, msg, True)
  188 + return
  189 +
185 190 # NOTE: This event type is deprecated and Orca should no longer use it.
186 191 # This callback remains just to handle bugs in applications and toolkits
187 192 # in which object:state-changed:focused events are missing. And in the
... ...