[orca] Fix for bug #630584 - Orca should announce the newly-focused sheet when the user navigates amongst s
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug #630584 - Orca should announce the newly-focused sheet when the user navigates amongst s
- Date: Sat, 25 Sep 2010 18:01:19 +0000 (UTC)
commit 81605db71d183d11034dd597a5ee583aa8ef1fa4
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat Sep 25 13:57:33 2010 -0400
Fix for bug #630584 - Orca should announce the newly-focused sheet when the user navigates amongst sheets in Calc
src/orca/scripts/apps/soffice/script.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 6fea213..0913f60 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -1846,8 +1846,16 @@ class Script(default.Script):
if not event.any_data or not orca_state.locusOfFocus:
return
- if event.type.startswith('object:children-changed:add') \
- and event.any_data.getRole() == pyatspi.ROLE_TABLE_CELL:
+ if not event.type.startswith('object:children-changed:add'):
+ return
+
+ role = event.any_data.getRole()
+ if role == pyatspi.ROLE_TABLE:
+ if self.isSpreadSheetCell(event.any_data, True):
+ orca.setLocusOfFocus(event, event.any_data)
+ return
+
+ if role == pyatspi.ROLE_TABLE_CELL:
activeRow = self.pointOfReference.get('lastRow', -1)
activeCol = self.pointOfReference.get('lastColumn', -1)
if activeRow < 0 or activeCol < 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]