Re: [orca-list] Making an dynamic inputless informative window accessible



Could you set the accessible role to notification and then cause the text to become showing when it needed to be spoken?

On 4/16/20 10:47, Colomban Wendling via orca-list wrote:
Hello Joanie & al

I'm working on an app with a purely informative GTK UI, that is it
doesn't have controls or such -- save closing the window.  Basically
it's presenting the status of a network connection with some fancy
around (connecting, connected, error, etc.).

All work fine, but the presentation by Orca: I need it to read out the
information as it comes ("Connecting, please wait…", "You are now
connected", "Failed to connect", …), but I'm failing to get totally
satisfying results.  Here are the options I tested:

* Making the labels selectable, which makes them focusable.  That's what
I'm using for now, but cons are:
   - I don't actually want the label to be selected or selectable, so I
have to fight GTK on visual display;
   - Orca announces the type of the element ("label") -- which is
consistent and expected, but adds noise in this case.

* Making my label describe the window
   - Orca is a little too "quick" at announcing the content after
announcing the window.  This is again not a surprise, but suboptimal;
   - Orca doesn't announce a change if I update the relation (make a new
label be the description of the window).  I didn't actually test
changing the label's content, but I would not expect much success.

* Using role ALERT on the window.  This mostly works at first, but:
   - This doesn't *really* feel appropriate for this window as it's not
really an alert, but well
  - Orca doesn't announce changes in the window (e.g. when the displayed
label changes)

* Using the role STATIC on the labels
   - Requires me manually setting the a11y name, but that's OK
   - Orca doesn't announce anything.

All of the above (but the first) have additional issues if I *do* have
somewhere the focus can actually go (a link on a label) because then
this part gets announced twice.

Basically, this boils down to how to make a focus-less window with
dynamic content be presented best.  Any suggestions?

Thanks for reading this through, and in advance for answers :)

Regards,
Colomban
_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Orca wiki: https://wiki.gnome.org/Projects/Orca
Orca documentation: https://help.gnome.org/users/orca/stable/
GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]