Skip to content

Remove keep mouse centered#20268

Merged
seanbudd merged 2 commits into
nvaccess:betafrom
France-Travail:removeKeepMouseCentered
Jun 3, 2026
Merged

Remove keep mouse centered#20268
seanbudd merged 2 commits into
nvaccess:betafrom
France-Travail:removeKeepMouseCentered

Conversation

@Boumtchack

@Boumtchack Boumtchack commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Link to issue number:

fixes #20200
fixes #20195

Summary of the issue:

The option to keep mouse centered on the screen was originally my idea but is bringing more nuisance, and not much use.
As talked with @CyrilleB79, the best solution would be to remove it and replace this idea with the gesture that he worked on #20238

Description of user facing changes:

won't be able to keep mouse centered on the screen anymore

Description of developer facing changes:

Keep mouse centered options/functions/variables/tests have been removed

Description of development approach:

deleting everything

Testing strategy:

unit

Known issues with pull request:

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.

@Boumtchack Boumtchack changed the base branch from master to beta June 2, 2026 14:39
@Boumtchack Boumtchack marked this pull request as ready for review June 2, 2026 14:40
@Boumtchack Boumtchack requested review from a team as code owners June 2, 2026 14:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Removes the “Keep mouse centered” magnifier option across configuration, GUI, documentation, and tests.

Changes:

  • Removed the keepMouseCentered config key and its accessor.
  • Removed the settings UI checkbox and related persistence/discard logic.
  • Deleted user guide documentation and unit/end-to-end tests for the removed behavior.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
user_docs/en/userGuide.md Removes documentation for the deleted “Keep mouse centered” option.
tests/unit/test_magnifier/test_magnifier.py Removes the unit test for _keepMouseCentered; simplifies pan tests accordingly.
tests/unit/test_magnifier/test_fullscreenMagnifier.py Removes fullscreen magnifier tests specifically validating _keepMouseCentered.
source/gui/settingsDialogs.py Removes the UI checkbox and config persistence for keepMouseCentered.
source/config/configSpec.py Deletes the keepMouseCentered config spec entry.
source/_magnifier/magnifier.py Removes config-driven cursor-centering behavior and the base _keepMouseCentered method.
source/_magnifier/fullscreenMagnifier.py Removes the fullscreen override of _keepMouseCentered.
source/_magnifier/config.py Removes shouldKeepMouseCentered() accessor.

@Boumtchack Boumtchack requested a review from Copilot June 2, 2026 14:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Comment thread tests/unit/test_magnifier/test_magnifier.py
Comment thread source/config/configSpec.py

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Boumtchack

@seanbudd seanbudd merged commit 89a0024 into nvaccess:beta Jun 3, 2026
35 of 39 checks passed
@github-actions github-actions Bot added this to the 2026.3 milestone Jun 3, 2026
@seanbudd seanbudd modified the milestones: 2026.3, 2026.2 Jun 3, 2026
@Boumtchack Boumtchack deleted the removeKeepMouseCentered branch June 3, 2026 07:23
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.

Magnifier - Unable to move the mouse cursor

4 participants