From 0c1f6272c1647c5871b601dd15fdbabe6249a1bb Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 9 Sep 2019 13:10:44 +0200 Subject: 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 " 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 --- ui/confview.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/confview.go') 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() -- cgit v1.2.3-59-g8ed1b