Skip to content

Ensure the mouse does not play audio coordinates in sleep mode#15962

Merged
seanbudd merged 5 commits into
nvaccess:masterfrom
hwf1324:fix-8059
Dec 27, 2023
Merged

Ensure the mouse does not play audio coordinates in sleep mode#15962
seanbudd merged 5 commits into
nvaccess:masterfrom
hwf1324:fix-8059

Conversation

@hwf1324

@hwf1324 hwf1324 commented Dec 25, 2023

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #8059

Summary of the issue:

This issue seems to be because in the core pump, mouse movement events are being handled, but when executing the mouse movement event, there is no check for whether it is in sleep mode. And the function to play audio coordinates is executed accordingly.

Description of user facing changes

The audio coordinates are no longer played when the mouse moves over an application in sleep mode.

Description of development approach

Simultaneously determine whether to report audio coordinates and whether to be in sleep mode.

Testing strategy:

  1. Open mouse settings, and check Play audio coordinates when mouse moves, then hit okay.
  2. Open sleep mode on an application

Do not play audio coordinates when moving the mouse on this application

Known issues with pull request:

I was considering the possibility of failure in the logic of updating the mouse object.

So to be on the safe side I chose to use the old mouse object for the judgment.

Although this will delay the response of a mouse object, I think it is acceptable for this PR.

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.

@hwf1324 hwf1324 requested a review from a team as a code owner December 25, 2023 17:41
@hwf1324 hwf1324 requested a review from seanbudd December 25, 2023 17:41
Comment thread user_docs/en/changes.t2t Outdated
@seanbudd seanbudd changed the title The mouse does not play audio coordinates in sleep mode Ensure the mouse does not play audio coordinates in sleep mode Dec 27, 2023
Comment thread source/mouseHandler.py
@seanbudd seanbudd marked this pull request as draft December 27, 2023 00:29
@hwf1324 hwf1324 marked this pull request as ready for review December 27, 2023 03:17
Comment thread user_docs/en/changes.t2t Outdated
Comment thread user_docs/en/changes.t2t Outdated

@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 @hwf1324

@seanbudd seanbudd merged commit 5ace8fd into nvaccess:master Dec 27, 2023
@nvaccessAuto nvaccessAuto added this to the 2024.2 milestone Dec 27, 2023
@hwf1324 hwf1324 deleted the fix-8059 branch December 27, 2023 09:11
Comment thread user_docs/en/changes.t2t
Nael-Sayegh pushed a commit to Nael-Sayegh/nvda that referenced this pull request Feb 15, 2024
…ess#15962)

Fixes nvaccess#8059

Summary of the issue:
This issue seems to be because in the core pump, mouse movement events are being handled, but when executing the mouse movement event, there is no check for whether it is in sleep mode. And the function to play audio coordinates is executed accordingly.

Description of user facing changes
The audio coordinates are no longer played when the mouse moves over an application in sleep mode.

Description of development approach
Simultaneously determine whether to report audio coordinates and whether to be in sleep mode.
SaschaCowley pushed a commit to SaschaCowley/nvda that referenced this pull request Feb 27, 2024
…ess#15962)

Fixes nvaccess#8059

Summary of the issue:
This issue seems to be because in the core pump, mouse movement events are being handled, but when executing the mouse movement event, there is no check for whether it is in sleep mode. And the function to play audio coordinates is executed accordingly.

Description of user facing changes
The audio coordinates are no longer played when the mouse moves over an application in sleep mode.

Description of development approach
Simultaneously determine whether to report audio coordinates and whether to be in sleep mode.
Adriani90 pushed a commit to Adriani90/nvda that referenced this pull request Mar 13, 2024
…ess#15962)

Fixes nvaccess#8059

Summary of the issue:
This issue seems to be because in the core pump, mouse movement events are being handled, but when executing the mouse movement event, there is no check for whether it is in sleep mode. And the function to play audio coordinates is executed accordingly.

Description of user facing changes
The audio coordinates are no longer played when the mouse moves over an application in sleep mode.

Description of development approach
Simultaneously determine whether to report audio coordinates and whether to be in sleep mode.
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.

In sleep mode, mouse beeps occur

4 participants