[orca] Speak cell coordinates for ARIA tables
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Speak cell coordinates for ARIA tables
- Date: Wed, 5 Jun 2019 22:57:03 +0000 (UTC)
commit eeeb38e6d403245f889c1f9c982a73e2602532cd
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jun 5 18:56:31 2019 -0400
Speak cell coordinates for ARIA tables
src/orca/scripts/web/speech_generator.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index a89a17f19..445e9b639 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -497,6 +497,22 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
result.extend(self.voice(speech_generator.SYSTEM))
return result
+ def _generateRealTableCell(self, obj, **args):
+ result = super()._generateRealTableCell(obj, **args)
+ if not self._script.inFocusMode():
+ return result
+
+ if _settingsManager.getSetting('speakCellCoordinates'):
+ row, col = self._script.utilities.coordinatesForCell(obj)
+ if self._script.utilities.cellRowChanged(obj):
+ result.append(messages.TABLE_ROW % (row + 1))
+ result.extend(self.voice(speech_generator.SYSTEM))
+ if self._script.utilities.cellColumnChanged(obj):
+ result.append(messages.TABLE_COLUMN % (col + 1))
+ result.extend(self.voice(speech_generator.SYSTEM))
+
+ return result
+
def _generateTableCellRow(self, obj, **args):
if not self._script.inFocusMode():
return super()._generateTableCellRow(obj, **args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]