diff options
author | Simon Rozman <simon@rozman.si> | 2019-09-09 13:10:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-04 11:43:09 +0200 |
commit | 6cd634340a2f43097f1deb457c710357d67af2f0 (patch) | |
tree | 05c51b02404da6ebd3368f0275f1ef918af4f01d /ui/confview.go | |
parent | mod: bump versions (diff) | |
download | wireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.tar.xz wireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.zip |
ui: annotate controls
Regarding interface and peer info text boxes: The read-only edit boxes
containing interface and peer status and information were read as
"<value> read-only multiline" by NVDA screen reader. The read-only edit
boxes that serve the informative purpose only must be annotated as
ROLE_SYSTEM_STATICTEXT instead of edit box-inherited ROLE_SYSTEM_TEXT
role.
Regarding logo image in about dialog: NVDA reads "unknown" when reading
the dialog without this patch.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'ui/confview.go')
-rw-r--r-- | ui/confview.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/confview.go b/ui/confview.go index c748d2af..250b7427 100644 --- a/ui/confview.go +++ b/ui/confview.go @@ -145,6 +145,7 @@ func newLabelStatusLine(parent walk.Container) (*labelStatusLine, error) { lsl.statusLabel.SetTextSelection(0, 0) }) lsl.update(manager.TunnelUnknown) + lsl.statusLabel.Accessibility().SetRole(walk.AccRoleStatictext) disposables.Spare() @@ -201,6 +202,7 @@ func newLabelTextLine(fieldName string, parent walk.Container) (*labelTextLine, lt.text.FocusedChanged().Attach(func() { lt.text.SetTextSelection(0, 0) }) + lt.text.Accessibility().SetRole(walk.AccRoleStatictext) disposables.Spare() |