[orca] Don't generate row headers for cells during caret navigation by line
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't generate row headers for cells during caret navigation by line
- Date: Mon, 10 Feb 2020 22:15:43 +0000 (UTC)
commit db06b214177931cda5ccc55506080fc929abaaf9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 10 23:13:49 2020 +0100
Don't generate row headers for cells during caret navigation by line
The row header will already be presented as part of the line contents
when the row is changing. Within a multi-line cell, we shouldn't
double-present it.
src/orca/scripts/web/speech_generator.py | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 3b732ed4f..5881e6d33 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -662,6 +662,14 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return super()._generateTableCellRow(obj, **args)
+ def _generateRowHeader(self, obj, **args):
+ # TODO - JD: _lastCommandWasCaretNav is private.
+ if self._script.utilities.lastInputEventWasLineNav() \
+ and self._script._lastCommandWasCaretNav:
+ return []
+
+ return super()._generateRowHeader()
+
def generateSpeech(self, obj, **args):
if not self._script.utilities.inDocumentContent(obj):
msg = "WEB: %s is not in document content. Calling default speech generator." % obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]