Skip to content

Word collapse/expand headings: add gestures with numlock on#17901

Merged
seanbudd merged 1 commit into
nvaccess:betafrom
CyrilleB79:wordCollExpGestures
Apr 7, 2025
Merged

Word collapse/expand headings: add gestures with numlock on#17901
seanbudd merged 1 commit into
nvaccess:betafrom
CyrilleB79:wordCollExpGestures

Conversation

@CyrilleB79

Copy link
Copy Markdown
Contributor

Link to issue number:

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.

Testing strategy:

In a branch integrating #17900, tested the script on Word with numlock on and off.

Known issues with pull request:

None

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@CyrilleB79 CyrilleB79 changed the base branch from master to beta April 4, 2025 13:45
@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@seanbudd, I am targeting beta if you also accept #17900 for beta and if you consider the link with #17545 also merged during this dev cycle.

If not, I'll have to write a change log item in 2025.2 section.

@CyrilleB79 CyrilleB79 marked this pull request as ready for review April 4, 2025 14:38
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner April 4, 2025 14:38
@CyrilleB79 CyrilleB79 requested a review from SaschaCowley April 4, 2025 14:38
seanbudd added a commit that referenced this pull request Apr 7, 2025
Fixes #10827

Blocking #17901

Summary of the issue:
In NVDA's code, when numpadPlus, numpadMinus, numpadMultiply and numpadDivide is pressed, we make a difference if numlock is enabled or disabled, by artificially making numlock a modifier. Though, when numlock modifier is used in a gesture's key name and gesture.send is used, numlock key event is really sent to the system, causing numlock deactivation.

Description of user facing changes
None

Description of development approach
In KeyboardInputGesture.send method, filter numlock as a modifier so that it is never sent to the system.
@seanbudd seanbudd merged commit 2dc6e74 into nvaccess:beta Apr 7, 2025
@github-actions github-actions Bot added this to the 2025.2 milestone Apr 7, 2025
@CyrilleB79 CyrilleB79 deleted the wordCollExpGestures branch April 7, 2025 08:38
@CyrilleB79 CyrilleB79 modified the milestones: 2025.2, 2025.1 Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants