-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #299387: support for more screen readers + collect_artifacts
MuseScore uses mostly standard Qt widgets and is thus accessible. The SocreView widget is custom, however, and we implement accessibility for it ourselves. The support has long worked with NVDA only. There are a number of reasons for this, and this PR addresses them. It also improves the reading by NVDA. The changes allow Orca and JAWS to work, although we may also need to provide scripts for them. The changes are: * added empty text for the container objects to prevent reading * fix rect() so mouse actions are associated with scoreview * fix window() to return correct window pointer * set the accessible description along with the value in text() * change role() to StaticText * set good values for isValid() and state() * implement value interface * eliminate redundant call to endCmd() * set focusPolicy of ScoreView to StrongFocus The basic model hasn't changed - we set a value on the widget, and send a value changed event. This is not necessary the "correct" solution, but it works best. I also included some code to facilitate changing to other approaches. Different versins of Qt, different OS's, different screen readers may require customization here. But the code as I have enabled works well enough at the moment.
- Loading branch information
1 parent
fe3064d
commit 9dc93c5
Showing
7 changed files
with
191 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters