From 2acaddd2cd19ee0dc3bd0e5065edc0225b7ee095 Mon Sep 17 00:00:00 2001 From: Julien Cochuyt Date: Wed, 5 May 2021 23:31:40 +0200 Subject: [PATCH] Elements List dialog: Remove the accelerator key on the "Activate" button (#6167) Note to translators: Beware not to set an accelerator that would collide with other controls in this dialog, such as an element type radio label. --- source/browseMode.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/browseMode.py b/source/browseMode.py index 0729e0aecf8..31cd021f35d 100644 --- a/source/browseMode.py +++ b/source/browseMode.py @@ -972,9 +972,10 @@ def __init__(self, document): contentsSizer.AddSpacer(gui.guiHelper.SPACE_BETWEEN_VERTICAL_DIALOG_ITEMS) bHelper = gui.guiHelper.ButtonHelper(wx.HORIZONTAL) - # Translators: The label of a button to activate an element - # in the browse mode Elements List dialog. - self.activateButton = bHelper.addButton(self, label=_("&Activate")) + # Translators: The label of a button to activate an element in the browse mode Elements List dialog. + # Beware not to set an accelerator that would collide with other controls in this dialog, such as an + # element type radio label. + self.activateButton = bHelper.addButton(self, label=_("Activate")) self.activateButton.Bind(wx.EVT_BUTTON, lambda evt: self.onAction(True)) # Translators: The label of a button to move to an element