Skip to content

Commit

Permalink
Added buttons to the list of elements in browse mode (nvaccess#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard de Ruijter committed Jun 28, 2016
1 parent cd4a609 commit c90a441
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/browseMode.py
Expand Up @@ -573,6 +573,9 @@ class ElementsListDialog(wx.Dialog):
("link", _("Lin&ks")),
# Translators: The label of a radio button to select the type of element
# in the browse mode Elements List dialog.
("button", _("&Buttons")),
# Translators: The label of a radio button to select the type of element
# in the browse mode Elements List dialog.
("heading", _("&Headings")),
# Translators: The label of a radio button to select the type of element
# in the browse mode Elements List dialog.
Expand Down Expand Up @@ -643,8 +646,8 @@ def onElementTypeChange(self, evt):
self.lastSelectedElementType=elementType

def initElementType(self, elType):
if elType == "link":
# Links can be activated.
if elType in ("link","button"):
# Links and buttons can be activated.
self.activateButton.Enable()
self.SetAffirmativeId(self.activateButton.GetId())
else:
Expand Down

0 comments on commit c90a441

Please sign in to comment.