[orca] Work around a missing object:state-changed:focused event from Gecko
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around a missing object:state-changed:focused event from Gecko
- Date: Wed, 9 Sep 2015 13:32:06 +0000 (UTC)
commit ecfd2738f9e9298c1301260ec38d99ea7fec9bd8
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Sep 9 09:31:06 2015 -0400
Work around a missing object:state-changed:focused event from Gecko
src/orca/scripts/toolkits/Gecko/script.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index abc7a67..16e947d 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -179,6 +179,9 @@ class Script(web.Script):
if role in [pyatspi.ROLE_TEXT, pyatspi.ROLE_PASSWORD_TEXT]:
orca.setLocusOfFocus(event, event.source)
+ if role == pyatspi.ROLE_COMBO_BOX:
+ 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]