nvda
efe1a189 - Speak typed characters in Calculator when echo mode is 'Only in edit controls'. (#17905)

Commit
1 year ago
Speak typed characters in Calculator when echo mode is 'Only in edit controls'. (#17905) Fixes #17670 Summary of the issue: #17505 introduced the functionality where typed characters are only spoken when typing within editable controls. However, the input area in the modern Windows Calculator is not a standard editable control. Furthermore, it appears that almost any focused element within the Calculator can capture user input as part of the mathematical expression. Description of user facing changes Users will now hear typed characters in the Calculator even when the "Speak typed characters" option is set to 'Only in edit controls'. Description of development approach I handled the event_typedCharacter event within the "calculator" app module by temporarily switching the speakTypedCharacters mode to ALWAYS when the original setting is EDIT_CONTROLS, thereby ensuring NVDA reports the typed character. As noted above, since it seems almost any focused element in the Calculator accepts user input for the expression, I did not restrict this handling to specific objects within the Calculator. While this successfully restores the previous behavior, I have some reservations about this approach: Within the Calculator, the 'Only in edit controls' setting now behaves identically to 'Always'. If a user prefers not to hear typed characters in the Calculator specifically, they would have to turn the global setting off entirely. In the Calculator's "Converter" modes (e.g., Currency Converter, Temperature Converter), NVDA already announces the updated result with each keypress. With this change, NVDA will announce the typed character and the result, leading to the character being effectively spoken twice in quick succession, which might be slightly verbose or annoying.
Author
Parents
Loading