Skip to content

Commit

Permalink
Merge 667c0ca into 709c3d9
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleB79 committed Nov 25, 2023
2 parents 709c3d9 + 667c0ca commit 1b8aea4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/gui/installerGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def __init__(self, parent):

# Translators: The label of a grouping containing controls to select the destination directory
# in the Create Portable NVDA dialog.
directoryGroupText = _("Portable &directory:")
directoryGroupText = _("Portable directory:")
groupSizer = wx.StaticBoxSizer(wx.VERTICAL, self, label=directoryGroupText)
groupHelper = sHelper.addItem(guiHelper.BoxSizerHelper(self, sizer=groupSizer))
groupBox = groupSizer.GetStaticBox()
Expand Down
7 changes: 4 additions & 3 deletions source/speech/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def getObjectSpeech(
or not obj._hasNavigableText
)

allowProperties = _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent)
allowProperties = _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent, obj.role)

if reason == OutputReason.FOCUSENTERED:
# Aside from excluding some properties, focus entered should be spoken like focus.
Expand Down Expand Up @@ -747,7 +747,7 @@ def getObjectSpeech(
return sequence


def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent):
def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent, objRole):
allowProperties = {
'name': True,
'role': True,
Expand Down Expand Up @@ -776,7 +776,8 @@ def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent):
}
if reason in (OutputReason.FOCUSENTERED, OutputReason.MOUSE):
allowProperties["value"] = False
allowProperties["keyboardShortcut"] = False
if not objRole == controlTypes.Role.LIST:
allowProperties["keyboardShortcut"] = False
allowProperties["positionInfo_level"] = False
if reason == OutputReason.MOUSE:
# Name is often part of the text content when mouse tracking.
Expand Down
2 changes: 1 addition & 1 deletion user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Users of Poedit 1 are encouraged to update to Poedit 3 if they want to rely on e
-

== Bug Fixes ==
- Reporting of object shortcut keys has been improved. (#10807, @CyrilleB79)
- Reporting of object shortcut keys has been improved. (#10807, #15816, @CyrilleB79)
- The SAPI4 synthesizer now properly supports volume, rate and pitch changes embedded in speech. (#15271, @LeonarddeR)
- Multi line state is now correctly reported in applications using Java Access Bridge. (#14609)
- In LibreOffice, words deleted using the ``control+backspace`` keyboard shortcut are now also properly announced when the deleted word is followed by whitespace (like spaces and tabs). (#15436, @michaelweghorn)
Expand Down

0 comments on commit 1b8aea4

Please sign in to comment.