MS Word: The result of Word commands to expand or collapse a heading is now reported#17545
Conversation
|
Test OK in French system/Word, remapping the gesture as needed, i.e. mapping alt+shift+6, which collapse a heading. Note: it has been done so, because the dash is on the same key as the 6. But strangely, setting my Word (Office) and my keyboard layout to English, I cannot collapse a heading with |
See test results for failed build of commit 7e57e5193e |
|
It has been tested in the Chinese version of Word. This function works normally. The Chinese version of Word has the same shortcut keys as the English version. |
|
After further testing, I found that there seems to be a problem with this function in the Outline view of Word. Regardless of pressing Alt+Shift+Plus sign (+) or Alt+Shift+Minus sign (-), NVDA prompts Expanded, but the operation has been performed correctly. |
|
Finally, I have had to exclude such reporting in Outline mode because I have not been able to get the paragraph state in this mode (see also related #17645). Also, I have excluded Draft mode which has no possibility to collapse headings. |
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
See test results for failed build of commit 268541d0ce |
|
@SaschaCowley the PR is ready again. |
|
@SaschaCowley or @seanbudd are you waiting for me to do something here? If possible, it would be nice to merge this one for 2025.1, even if not mandatory, to be consistent with #17499: both enhance the support of Word's feature to collapse/expand headings. |
|
@CyrilleB79 no, just waiting on checks to complete before merging. Thanks for your patience. |
…is now reported (nvaccess#17545) Related to nvaccess#17499, but independent of it. Summary of the issue: In MS Word, control+alt+plus and control+alt+- allow to expand and collapse the content below a heading. NVDA does not report the result of this action. Description of user facing changes: NVDA now reports the result of the Word commands to expand and collapse headings. This command does not exist in Draft mode, so nothing is reported when in this mode. The command also does not report anything in Outline mode (limitation of this PR). Description of development approach: Use Word object model (if available) as done for many Word gestures, no matter if UIA is enabled or not Testing strategy: Tested with and without UIA. Known issues with pull request:: This PR does not cover outline mode. The collapse / extend commands still don't report anything in Outline mode; see related issue nvaccess#17645.
Follow-up of #17545 Blocked by #17900 Summary of the issue: #17545 has implemented the announcement resulting of the action to collapse or expand headings in Word with shift+alt+plus/- when using plus/minus on the main keyboard and on the numpad. Thought, using the numpad plus/minus key on the numpad does not report anything if numlock is enabled. Description of user facing changes alt+shift+numpadPlus/Minus will now report headings expanding / collapsing, no matter if numlock is on or off. Description of development approach Added the two gestures with numlock on in the gestures list of the script.
Link to issue number:
None
Related to #17499, but independent of it.
Summary of the issue:
In MS Word,
control+alt+plusandcontrol+alt+-allow to expand and collapse the content below a heading. NVDA does not report the result of this action.Description of user facing changes
NVDA now reports the result of the Word commands to expand and collapse headings.
This command does not exist in Draft mode, so nothing is reported when in this mode.
The command also does not report anything in Outline mode (limitation of this PR).
Description of development approach
Use Word object model (if available) as done for many Word gestures, no matter if UIA is enabled or not
Testing strategy:
Tested with and without UIA.
Known issues with pull request:
This PR does not cover outline mode. The collapse / extend commands still don't report anything in Outline mode; see related issue #17645.
Code Review Checklist:
@coderabbitai summary