Add script to toggle mouse audio coordinates (#19026)#19282
Conversation
|
The user guide and change log should be updated simultaneously. |
1 similar comment
|
The user guide and change log should be updated simultaneously. |
|
Nice. What about playing a beep for the current mouse coordinates rather than issuing the speech message "enabled"? This would be more useful IMO and would allow to use a double-press to only hear the current position without permanently activating the feature. |
|
@hwf1324 Thanks, I've updated both the user guide and the change log accordingly. |
@rlawnsrl123 , I've reviewed the T2T file. Is your base commit too far behind the upstream? In the user guide, gestures should also be added to the table. |
|
Thanks, great idea! For this PR I’ll keep it as a simple toggle for the existing |
|
@rlawnsrl123 is this PR ready? If yes, you need to move it to "Ready" state so that it will be reviewed by NV Access. |
0322318 to
9b24678
Compare
|
Thanks for the review! I rebased this branch onto the latest master, updated userGuide.md and changes.md to document the new mouse audio coordinates toggle command (including an entry in the “Toggle which information NVDA reads” table), and removed the obsolete t2t files that had sneaked back into my branch. |
Link to issue number:
Fixes #19026Summary of the issue:
This PR adds a new global script
script_toggleMouseAudioCoordinatesinglobalCommands.py.The script:
mouse/audioCoordinatesOnMouseMoveconfiguration value usingtoggleBooleanValue.No default gesture is assigned in code.
Users can bind any gesture they like from NVDA menu → Preferences → Input gestures… → Mouse.
Description of user facing changes:
Adds a new script in the Mouse category of the Input Gestures dialog that allows users to assign a gesture to toggle mouse audio coordinates (beeps that report mouse location).
There is no behavior change unless a user assigns a gesture.
Description of developer facing changes:
-Adds
script_toggleMouseAudioCoordinatestoGlobalCommandsinglobalCommands.py.toggleBooleanValuehelper to toggleconfig.conf["mouse"]["audioCoordinatesOnMouseMove"].Description of development approach:
Reuse the existing
toggleBooleanValuehelper to avoid duplicating toggle logic and messages.Only
globalCommands.pyis updated; no new settings or gesture defaults are added.Testing strategy:
runnvda.bat.NVDA+Shift+M) and verified that:Known issues with pull request:
Code Review Checklist: