[orca] Hack around another focus: only situation in Gecko
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Hack around another focus: only situation in Gecko
- Date: Mon, 11 Nov 2013 22:46:52 +0000 (UTC)
commit d110781bf84aa94f48a981f7e1d5726522aa1924
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Nov 11 17:46:20 2013 -0500
Hack around another focus: only situation in Gecko
src/orca/scripts/toolkits/Gecko/script.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 3bb0d91..eb03bf5 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1292,6 +1292,14 @@ class Script(default.Script):
# but no object:state-changed:focused event from Gecko.
if role == pyatspi.ROLE_MENU:
orca.setLocusOfFocus(event, event.source)
+ return
+
+ # Unfiled. When the Thunderbird 'do you want to replace this file'
+ # attachment dialog pops up, the 'Replace' button emits a focus:
+ # event, but we only seem to get the object:state-changed:focused
+ # event when it gives up focus.
+ if role == pyatspi.ROLE_PUSH_BUTTON:
+ orca.setLocusOfFocus(event, event.source)
def onFocusedChanged(self, event):
"""Callback for object:state-changed:focused accessibility events."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]