nvda
dfb442df - Follow-up #17905: Speak typed characters in classic Calculator when echo mode is 'Only in edit controls'. (#17913)

Commit
360 days ago
Follow-up #17905: Speak typed characters in classic Calculator when echo mode is 'Only in edit controls'. (#17913) Addresses #17670 for the classic Windows Calculator. Follow-up to PR #17905. Summary of the issue: Similar to the issue observed in the modern Windows Calculator, the classic Windows Calculator's display area does not consistently trigger character echo when NVDA's "Speak typed characters" setting is configured to 'Only in edit controls'. Description of user facing changes Users will now hear typed characters echoed when typing into the display field of the classic Windows Calculator, even when the "Speak typed characters" option is set to 'Only in edit controls'. Description of development approach This change mirrors the approach taken for the modern Calculator in PR #17905. The event_typedCharacter method within the Display overlay class (which specifically targets the display controls of the classic Calculator in calc.py) is modified. When this event occurs and the original speakTypedCharacters mode is EDIT_CONTROLS, the mode is temporarily switched to ALWAYS before calling the parent class's event handler. The original mode is then restored in a finally block.
Author
Parents
Loading