nvda
16cbc6f8 - Report the result of word switch case formatting command (#17425)

Commit
1 year ago
Report the result of word switch case formatting command (#17425) Fixes #10271 (last part) Also could be considered a partial fix of #3293. Summary of the issue: In Word / Outlook, nothing is reported when using the switch case command (shift+f3 in both, control+shift+a in Outlook only). Since it is a toggle/cycle command, the user needs to have the result to be reported. Description of user facing changes Using the switch case formatting command in Word or Outlook now reports its result, i.e. the type of case in which the selection has been formatted. When possible, the message being reported illustrates its own casing, as in Word menus, e.g. "lower case", "UPPERCASE", "Each Word Capitalized"; this may be useful in braille. Exception, for "Mixed case", I have not done something such as "mIxEd cAsE" because it is not correctly understandable through speech. Description of development approach Used Word object model as for other Word formatting scripts. Introduced a delay (set empirically), since the property retrieved from the object model transitions through other values (no case or lower case) before reaching its definitive value. Bind gestures according to the ones existing in Word and Outlook. Note: shift+f3 performs case switch both in Word and Outlook, whereas control+shift+A does it only in Outlook. See "Notes about various capitalization shortcuts" in #17197 for more details.
Author
Parents
Loading