[orca] Work around yet more missing state-changed:focused events in LibreOffice
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Work around yet more missing state-changed:focused events in LibreOffice
- Date: Mon, 3 Feb 2014 14:09:19 +0000 (UTC)
commit 53b6c5ef7481f005e304e5ee3e502ff6996f33ed
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 3 09:08:53 2014 -0500
Work around yet more missing state-changed:focused events in LibreOffice
src/orca/scripts/apps/soffice/script.py | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index c550ff2..37713d9 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -906,6 +906,26 @@ class Script(default.Script):
orca.setLocusOfFocus(event, event.source)
return
+ # Ditto.
+ if role == pyatspi.ROLE_PUSH_BUTTON:
+ orca.setLocusOfFocus(event, event.source)
+ return
+
+ # Ditto.
+ if role == pyatspi.ROLE_COMBO_BOX:
+ orca.setLocusOfFocus(event, event.source)
+ return
+
+ # Ditto.
+ if role == pyatspi.ROLE_TABLE:
+ obj = event.source
+ selectedChildren = self.utilities.selectedChildren(obj)
+ if selectedChildren:
+ obj = selectedChildren[0]
+
+ orca.setLocusOfFocus(event, obj)
+ return
+
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]