[orca/gnome-3-28] Add explicit handling for "document web" role
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-28] Add explicit handling for "document web" role
- Date: Tue, 15 May 2018 12:19:01 +0000 (UTC)
commit d84ef615288b48b38351fb98297a5a7a27e2a93b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue May 15 08:16:45 2018 -0400
Add explicit handling for "document web" role
src/orca/formatting.py | 5 +++++
src/orca/scripts/web/speech_generator.py | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/formatting.py b/src/orca/formatting.py
index 8dd30e8..b8c2fee 100644
--- a/src/orca/formatting.py
+++ b/src/orca/formatting.py
@@ -190,6 +190,11 @@ formatting = {
'basicWhereAmI': 'label + readOnly + textRole + textContent + anyTextSelection + ' + MNEMONIC,
'detailedWhereAmI': 'label + readOnly + textRole + textContentWithAttributes + anyTextSelection
+ ' + MNEMONIC
},
+ pyatspi.ROLE_DOCUMENT_WEB: {
+ 'unfocused': 'label + readOnly + textRole + currentLineText + anyTextSelection + ' + MNEMONIC,
+ 'basicWhereAmI': 'label + readOnly + textRole + textContent + anyTextSelection + ' + MNEMONIC,
+ 'detailedWhereAmI': 'label + readOnly + textRole + textContentWithAttributes + anyTextSelection
+ ' + MNEMONIC
+ },
'ROLE_DPUB_LANDMARK': {
'focused': 'leaving or labelOrName',
'unfocused': 'labelOrName + currentLineText + allTextSelection'
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 791175d..b1973c8 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -303,6 +303,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
doNotSpeak.append(pyatspi.ROLE_LIST)
if (start or end):
doNotSpeak.append(pyatspi.ROLE_DOCUMENT_FRAME)
+ doNotSpeak.append(pyatspi.ROLE_DOCUMENT_WEB)
doNotSpeak.append(pyatspi.ROLE_ALERT)
if self._script.utilities.isAnchor(obj):
doNotSpeak.append(obj.getRole())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]