When the generic wxInfoBar showed a message, screen readers said nothing, so their users did not know it had appeared.
The info bar now has the alert accessible role with the message as its name, and sends an alert event every time ShowMessage() is called. NVDA reads the message when it is shown, and also when a new message is shown while the bar is already visible.
Tested with NVDA on Windows 11.
https://github.com/wxWidgets/wxWidgets/pull/27053
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Nice! This is less generic but simpler than the announcement API I mentioned elsewhere, so let's do this, at least for now.
Will merge too soon.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Thanks! I think it would be worth keeping the alert role even once we have an announcement API, though. Besides announcing the message when it appears, it also tells screen reader users what the bar is when they Tab into it later ("This is an info bar message, alert"), which an announcement alone can't do. Native Windows applications, such as Settings, announce their info bars when they appear too, so users expect this behaviour.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()