From ecce6cb7f33a7bda6d32738dae345bf5f928582f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Abush=20Clause?= Date: Tue, 2 Apr 2024 16:48:35 +0200 Subject: [PATCH] feat(controlMutation): add support for redundant object mutation --- addon/globalPlugins/webAccess/ruleHandler/controlMutation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addon/globalPlugins/webAccess/ruleHandler/controlMutation.py b/addon/globalPlugins/webAccess/ruleHandler/controlMutation.py index 392e0e66..6ca91462 100644 --- a/addon/globalPlugins/webAccess/ruleHandler/controlMutation.py +++ b/addon/globalPlugins/webAccess/ruleHandler/controlMutation.py @@ -111,6 +111,7 @@ def apply(self, result): "landmark.nav.named": Mutation({"landmark": "navigation"}, True), "landmark.nav.unnamed": Mutation({"landmark": "navigation"}, False), "link": Mutation({"role": controlTypes.ROLE_LINK}, False), + "redundant.object": Mutation({"role": controlTypes.ROLE_REDUNDANTOBJECT}, False), "section": Mutation({"role": controlTypes.ROLE_SECTION}, False), "table.data": Mutation({"table-layout": False}, False), "table.layout": Mutation({"table-layout": True}, False) @@ -126,6 +127,7 @@ def apply(self, result): "heading.5", "heading.6", "labelled", + "redundant.object", "section", "landmark.region", "landmark.nav.named", @@ -167,6 +169,8 @@ def apply(self, result): # Translators: The label for a control mutation. ("labelled", pgettext("webAccess.controlMutation", "Add a label")), # Translators: The label for a control mutation. + ("redundant.object", pgettext("webAccess.controlMutation", "Redundant object")), + # Translators: The label for a control mutation. ("section", pgettext("webAccess.controlMutation", "Section")), ( "landmark.region",