Report the result of word switch case formatting command #17425
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue number:
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
Note:
shift+f3
performs case switch both in Word and Outlook, whereascontrol+shift+A
does it only in Outlook. See "Notes about various capitalization shortcuts" in #17197 for more details.Testing strategy:
Manual test:
Test
shift+f3
andcontrol+shift+A
in the following conditions:Known issues with pull request:
None
Code Review Checklist:
@coderabbitai summary