Skip to content

Commit

Permalink
Comment to explain why we only filter lists
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilleB79 committed Nov 26, 2023
1 parent 2a1d18b commit 43c500e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/speech/speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,9 @@ def _objectSpeech_calculateAllowedProps(reason, shouldReportTextContent, objRole
}
if reason in (OutputReason.FOCUSENTERED, OutputReason.MOUSE):
allowProperties["value"] = False
# #15826: For containers, there are cases where the shortcut key can be defined but not working (e.g.
# GROUPING). The safest strategy is then to remove the shortcut keys of containers except in the known
# cases where it is working and useful. The only such known case is the one of LIST.
if not objRole == controlTypes.Role.LIST:
allowProperties["keyboardShortcut"] = False
allowProperties["positionInfo_level"] = False
Expand Down

0 comments on commit 43c500e

Please sign in to comment.