Skip to content

Commit 1b8aea4

Browse files
authored
Merge 667c0ca into 709c3d9
2 parents 709c3d9 + 667c0ca commit 1b8aea4

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

source/gui/installerGui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def __init__(self, parent):
359359

360360
# Translators: The label of a grouping containing controls to select the destination directory
361361
# in the Create Portable NVDA dialog.
362-
directoryGroupText = _("Portable &directory:")
362+
directoryGroupText = _("Portable directory:")
363363
groupSizer = wx.StaticBoxSizer(wx.VERTICAL, self, label=directoryGroupText)
364364
groupHelper = sHelper.addItem(guiHelper.BoxSizerHelper(self, sizer=groupSizer))
365365
groupBox = groupSizer.GetStaticBox()

source/speech/speech.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def getObjectSpeech(
701701
or not obj._hasNavigableText
702702
)
703703

704-
allowProperties = _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent)
704+
allowProperties = _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent, obj.role)
705705

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

749749

750-
def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent):
750+
def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent, objRole):
751751
allowProperties = {
752752
'name': True,
753753
'role': True,
@@ -776,7 +776,8 @@ def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent):
776776
}
777777
if reason in (OutputReason.FOCUSENTERED, OutputReason.MOUSE):
778778
allowProperties["value"] = False
779-
allowProperties["keyboardShortcut"] = False
779+
if not objRole == controlTypes.Role.LIST:
780+
allowProperties["keyboardShortcut"] = False
780781
allowProperties["positionInfo_level"] = False
781782
if reason == OutputReason.MOUSE:
782783
# Name is often part of the text content when mouse tracking.

user_docs/en/changes.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Users of Poedit 1 are encouraged to update to Poedit 3 if they want to rely on e
3636
-
3737

3838
== Bug Fixes ==
39-
- Reporting of object shortcut keys has been improved. (#10807, @CyrilleB79)
39+
- Reporting of object shortcut keys has been improved. (#10807, #15816, @CyrilleB79)
4040
- The SAPI4 synthesizer now properly supports volume, rate and pitch changes embedded in speech. (#15271, @LeonarddeR)
4141
- Multi line state is now correctly reported in applications using Java Access Bridge. (#14609)
4242
- 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)

0 commit comments

Comments
 (0)