Commit b3fe579
authored
Fixes #19026
Summary of the issue:
This PR adds a new global script script_toggleMouseAudioCoordinates in globalCommands.py.
The script:
Appears in the Mouse category of the Input Gestures dialog.
Toggles the existing mouse/audioCoordinatesOnMouseMove configuration value using toggleBooleanValue.
Announces “Mouse audio coordinates on/off” when toggled.
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_toggleMouseAudioCoordinates to GlobalCommands in globalCommands.py.
Uses the existing toggleBooleanValue helper to toggle config.conf["mouse"]["audioCoordinatesOnMouseMove"].
No changes to public APIs or configuration schema.
Description of development approach:
Reuse the existing toggleBooleanValue helper to avoid duplicating toggle logic and messages.
Only globalCommands.py is updated; no new settings or gesture defaults are added.
Testing strategy:
Ran NVDA from source using runnvda.bat.
Opened Preferences → Input gestures… → Mouse.
Confirmed that a new script “Toggles beeps that report mouse coordinates as the mouse moves” is present.
Assigned a temporary gesture (e.g. NVDA+Shift+M) and verified that:
The gesture toggles the “Play audio coordinates when mouse moves” option.
NVDA reports “Mouse audio coordinates on/off”.
1 parent e29ed1d commit b3fe579
3 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3042 | 3042 | | |
3043 | 3043 | | |
3044 | 3044 | | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
3045 | 3062 | | |
3046 | 3063 | | |
3047 | 3064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| 955 | + | |
955 | 956 | | |
956 | 957 | | |
957 | 958 | | |
| |||
2811 | 2812 | | |
2812 | 2813 | | |
2813 | 2814 | | |
| 2815 | + | |
2814 | 2816 | | |
2815 | 2817 | | |
2816 | 2818 | | |
| |||
0 commit comments