[orca] Add comment, insertion, deletion, mark, and suggestion to text block roles
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add comment, insertion, deletion, mark, and suggestion to text block roles
- Date: Thu, 27 Feb 2020 14:01:49 +0000 (UTC)
commit 0f283b86a2f81a841b9fcae2b26e99133c67b5ad
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 27 15:00:40 2020 +0100
Add comment, insertion, deletion, mark, and suggestion to text block roles
src/orca/scripts/web/script_utilities.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 8be9d8d64..f3f59f866 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1912,6 +1912,7 @@ class Utilities(script_utilities.Utilities):
roles = [pyatspi.ROLE_ARTICLE,
pyatspi.ROLE_CAPTION,
pyatspi.ROLE_COLUMN_HEADER,
+ pyatspi.ROLE_COMMENT,
pyatspi.ROLE_DEFINITION,
pyatspi.ROLE_DESCRIPTION_LIST,
pyatspi.ROLE_DESCRIPTION_TERM,
@@ -1930,6 +1931,20 @@ class Utilities(script_utilities.Utilities):
pyatspi.ROLE_TEXT,
pyatspi.ROLE_TABLE_CELL]
+ # Remove this check when we bump dependencies to 2.34
+ try:
+ roles.append(pyatspi.ROLE_CONTENT_DELETION)
+ roles.append(pyatspi.ROLE_CONTENT_INSERTION)
+ except:
+ pass
+
+ # Remove this check when we bump dependencies to 2.36
+ try:
+ roles.append(pyatspi.ROLE_MARK)
+ roles.append(pyatspi.ROLE_SUGGESTION)
+ except:
+ pass
+
return roles
def mnemonicShortcutAccelerator(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]